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 bundle at |bundle|. Used by app | |
96 // shims, which run from a bundle which isn't Chrome itself, but which need | |
97 // access to the user data directory to connect to a UNIX-domain socket | |
98 // therein. | |
Mark Mentovai
2013/03/22 18:08:41
This returns a bool. Document what the bool means.
jeremy
2013/03/24 14:17:13
Also, can you please document what |bundle| is sup
jeremya
2013/04/01 23:30:22
Done.
jeremya
2013/04/01 23:30:22
Done.
| |
99 bool GetUserDataDirectoryForBundle(NSBundle* bundle, base::FilePath* result); | |
100 | |
95 #endif // OS_MACOSX && !OS_IOS | 101 #endif // OS_MACOSX && !OS_IOS |
96 | 102 |
97 // Checks if the |process_type| has the rights to access the profile. | 103 // Checks if the |process_type| has the rights to access the profile. |
98 bool ProcessNeedsProfileDir(const std::string& process_type); | 104 bool ProcessNeedsProfileDir(const std::string& process_type); |
99 | 105 |
100 } // namespace chrome | 106 } // namespace chrome |
101 | 107 |
102 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ | 108 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ |
OLD | NEW |