Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / common / mac / app_mode_chrome_locator.h
blob1b260d2b6c5a4b06281aadbd1d99118582f2f639
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.
5 #ifndef CHROME_COMMON_MAC_APP_MODE_CHROME_LOCATOR_H_
6 #define CHROME_COMMON_MAC_APP_MODE_CHROME_LOCATOR_H_
8 #include <CoreFoundation/CoreFoundation.h>
10 #include "base/strings/string16.h"
12 @class NSString;
14 namespace base {
15 class FilePath;
18 namespace app_mode {
20 // Given a bundle id, return the path of the corresponding bundle.
21 // Returns true if the bundle was found, false otherwise.
22 bool FindBundleById(NSString* bundle_id, base::FilePath* out_bundle);
24 // Given the path to the Chrome bundle, read the following information:
25 // |raw_version_str| - Chrome version.
26 // |version_path| - |chrome_bundle|/Contents/Versions/|raw_version_str|/
27 // |framework_shlib_path| - Path to the chrome framework's shared library (not
28 // the framework directory).
29 // Returns true if all information read succesfuly, false otherwise.
30 bool GetChromeBundleInfo(const base::FilePath& chrome_bundle,
31 base::string16* raw_version_str,
32 base::FilePath* version_path,
33 base::FilePath* framework_shlib_path);
35 } // namespace app_mode
37 #endif // CHROME_COMMON_MAC_APP_MODE_CHROME_LOCATOR_H_