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 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include <string> |
| 10 |
9 #include "build/build_config.h" | 11 #include "build/build_config.h" |
10 | 12 |
11 #if defined(OS_MACOSX) | 13 #if defined(OS_MACOSX) |
12 #if defined(__OBJC__) | 14 #if defined(__OBJC__) |
13 @class NSBundle; | 15 @class NSBundle; |
14 #else | 16 #else |
15 class NSBundle; | 17 class NSBundle; |
16 #endif | 18 #endif |
17 #endif | 19 #endif |
18 | 20 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 80 |
79 // Get the global Application Support directory (under /Library/). | 81 // Get the global Application Support directory (under /Library/). |
80 bool GetGlobalApplicationSupportDirectory(FilePath* result); | 82 bool GetGlobalApplicationSupportDirectory(FilePath* result); |
81 | 83 |
82 // Returns the NSBundle for the outer browser application, even when running | 84 // Returns the NSBundle for the outer browser application, even when running |
83 // inside the helper. In unbundled applications, such as tests, returns nil. | 85 // inside the helper. In unbundled applications, such as tests, returns nil. |
84 NSBundle* OuterAppBundle(); | 86 NSBundle* OuterAppBundle(); |
85 | 87 |
86 #endif // OS_MACOSX | 88 #endif // OS_MACOSX |
87 | 89 |
| 90 // Checks if the |process_type| has the rights to access the profile. |
| 91 bool ProcessNeedsProfileDir(const std::string& process_type); |
| 92 |
88 } // namespace chrome | 93 } // namespace chrome |
89 | 94 |
90 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ | 95 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ |
OLD | NEW |