OLD | NEW |
---|---|
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_CHROME_PATHS_INTERNAL_H_ | 5 #ifndef CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ |
6 #define CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ | 6 #define CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
85 // Get the local library directory. | 85 // Get the local library directory. |
86 bool GetLocalLibraryDirectory(base::FilePath* result); | 86 bool GetLocalLibraryDirectory(base::FilePath* result); |
87 | 87 |
88 // Get the global Application Support directory (under /Library/). | 88 // Get the global Application Support directory (under /Library/). |
89 bool GetGlobalApplicationSupportDirectory(base::FilePath* result); | 89 bool GetGlobalApplicationSupportDirectory(base::FilePath* result); |
90 | 90 |
91 // Returns the NSBundle for the outer browser application, even when running | 91 // Returns the NSBundle for the outer browser application, even when running |
92 // inside the helper. In unbundled applications, such as tests, returns nil. | 92 // inside the helper. In unbundled applications, such as tests, returns nil. |
93 NSBundle* OuterAppBundle(); | 93 NSBundle* OuterAppBundle(); |
94 | 94 |
95 // Get the user data directory for the Chrome browser bundle at |bundle|. | |
96 // |bundle| should be the same value that would be returned from +[NSBundle | |
97 // mainBundle] if Chrome were launched normaly. This is used by app shims, | |
98 // which run from a bundle which isn't Chrome itself, but which need access to | |
99 // the user data directory to connect to a UNIX-domain socket therein. | |
100 // Returns false if there was a problem fetching the app data directory. | |
101 bool GetUserDataDirectoryForBrowserBundle( | |
102 NSBundle* bundle, base::FilePath* result); | |
Mark Mentovai
2013/04/03 17:52:01
Likewise.
| |
103 | |
95 #endif // OS_MACOSX && !OS_IOS | 104 #endif // OS_MACOSX && !OS_IOS |
96 | 105 |
97 // Checks if the |process_type| has the rights to access the profile. | 106 // Checks if the |process_type| has the rights to access the profile. |
98 bool ProcessNeedsProfileDir(const std::string& process_type); | 107 bool ProcessNeedsProfileDir(const std::string& process_type); |
99 | 108 |
100 } // namespace chrome | 109 } // namespace chrome |
101 | 110 |
102 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ | 111 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ |
OLD | NEW |