Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Side by Side Diff: chrome/common/mac/app_mode_chrome_locator.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/logging_chrome.h ('k') | chrome/common/spellcheck_common.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_MAC_APP_MODE_CHROME_LOCATOR_H_ 5 #ifndef CHROME_COMMON_MAC_APP_MODE_CHROME_LOCATOR_H_
6 #define CHROME_COMMON_MAC_APP_MODE_CHROME_LOCATOR_H_ 6 #define CHROME_COMMON_MAC_APP_MODE_CHROME_LOCATOR_H_
7 7
8 #include <CoreFoundation/CoreFoundation.h> 8 #include <CoreFoundation/CoreFoundation.h>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
11 11
12 @class NSString; 12 @class NSString;
13 13
14 namespace base {
14 class FilePath; 15 class FilePath;
16 }
15 17
16 namespace app_mode { 18 namespace app_mode {
17 19
18 // Given a bundle id, return the path of the corresponding bundle. 20 // Given a bundle id, return the path of the corresponding bundle.
19 // Returns true if the bundle was found, false otherwise. 21 // Returns true if the bundle was found, false otherwise.
20 bool FindBundleById(NSString* bundle_id, FilePath* out_bundle); 22 bool FindBundleById(NSString* bundle_id, base::FilePath* out_bundle);
21 23
22 // Given the path to the Chrome bundle, read the following information: 24 // Given the path to the Chrome bundle, read the following information:
23 // |raw_version_str| - Chrome version. 25 // |raw_version_str| - Chrome version.
24 // |version_path| - |chrome_bundle|/Contents/Versions/|raw_version_str|/ 26 // |version_path| - |chrome_bundle|/Contents/Versions/|raw_version_str|/
25 // |framework_shlib_path| - Path to the chrome framework's shared library (not 27 // |framework_shlib_path| - Path to the chrome framework's shared library (not
26 // the framework directory). 28 // the framework directory).
27 // Returns true if all information read succesfuly, false otherwise. 29 // Returns true if all information read succesfuly, false otherwise.
28 bool GetChromeBundleInfo(const FilePath& chrome_bundle, 30 bool GetChromeBundleInfo(const base::FilePath& chrome_bundle,
29 string16* raw_version_str, 31 string16* raw_version_str,
30 FilePath* version_path, 32 base::FilePath* version_path,
31 FilePath* framework_shlib_path); 33 base::FilePath* framework_shlib_path);
32 34
33 } // namespace app_mode 35 } // namespace app_mode
34 36
35 #endif // CHROME_COMMON_MAC_APP_MODE_CHROME_LOCATOR_H_ 37 #endif // CHROME_COMMON_MAC_APP_MODE_CHROME_LOCATOR_H_
OLDNEW
« no previous file with comments | « chrome/common/logging_chrome.h ('k') | chrome/common/spellcheck_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698