Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_COMMON_MAC_APP_MODE_CHROME_LOCATOR_H_ | |
| 6 #define CHROME_COMMON_MAC_APP_MODE_CHROME_LOCATOR_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include <CoreFoundation/CoreFoundation.h> | |
| 10 | |
| 11 #include "base/string16.h" | |
| 12 | |
| 13 @class NSString; | |
| 14 | |
| 15 class FilePath; | |
| 16 | |
| 17 namespace app_mode { | |
| 18 | |
| 19 // Given a bundle id, return the path of the corresponding bundle. | |
| 20 // Returns true if the bundle was found, false otherwise. | |
| 21 bool FindBundleById(NSString* bundle_id, FilePath* out_bundle); | |
|
sail
2012/02/09 23:31:37
Could you add a comment that normally we don't use
| |
| 22 | |
| 23 // Given the path to the Chrome bundle, read the following information: | |
| 24 // |raw_version_str| - Chrome version. | |
| 25 // |version_path| - |chrome_bundle|/Contents/Versions/|raw_version_str|/ | |
| 26 // |framework_shlib_path| - Path to the chrome framework's shared library (not | |
| 27 // the framework directory). | |
| 28 // Returns true if all information read succesfuly, false otherwise. | |
| 29 bool GetChromeBundleInfo(const FilePath& chrome_bundle, | |
| 30 string16* raw_version_str, | |
| 31 FilePath* version_path, | |
| 32 FilePath* framework_shlib_path); | |
| 33 | |
| 34 } // namespace app_mode | |
| 35 | |
| 36 #endif // CHROME_COMMON_MAC_APP_MODE_CHROME_LOCATOR_H_ | |
| OLD | NEW |