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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 // Gets the path to the user's music directory. | 59 // Gets the path to the user's music directory. |
60 bool GetUserMusicDirectory(FilePath* result); | 60 bool GetUserMusicDirectory(FilePath* result); |
61 | 61 |
62 // Gets the path to the user's pictures directory. | 62 // Gets the path to the user's pictures directory. |
63 bool GetUserPicturesDirectory(FilePath* result); | 63 bool GetUserPicturesDirectory(FilePath* result); |
64 | 64 |
65 // Gets the path to the user's videos directory. | 65 // Gets the path to the user's videos directory. |
66 bool GetUserVideosDirectory(FilePath* result); | 66 bool GetUserVideosDirectory(FilePath* result); |
67 | 67 |
68 #if defined(OS_MACOSX) | 68 #if defined(OS_MACOSX) && !defined(OS_IOS) |
69 // The "versioned directory" is a directory in the browser .app bundle. It | 69 // The "versioned directory" is a directory in the browser .app bundle. It |
70 // contains the bulk of the application, except for the things that the system | 70 // contains the bulk of the application, except for the things that the system |
71 // requires be located at spepcific locations. The versioned directory is | 71 // requires be located at spepcific locations. The versioned directory is |
72 // in the .app at Contents/Versions/w.x.y.z. | 72 // in the .app at Contents/Versions/w.x.y.z. |
73 FilePath GetVersionedDirectory(); | 73 FilePath GetVersionedDirectory(); |
74 | 74 |
75 // This overrides the directory returned by |GetVersionedDirectory()|, to be | 75 // This overrides the directory returned by |GetVersionedDirectory()|, to be |
76 // used when |GetVersionedDirectory()| can't automatically determine the proper | 76 // used when |GetVersionedDirectory()| can't automatically determine the proper |
77 // location. This is the case when the browser didn't load itself but by, e.g., | 77 // location. This is the case when the browser didn't load itself but by, e.g., |
78 // the app mode loader. This should be called before |ChromeMain()|. This takes | 78 // the app mode loader. This should be called before |ChromeMain()|. This takes |
(...skipping 10 matching lines...) Expand all Loading... |
89 // Get the local library directory. | 89 // Get the local library directory. |
90 bool GetLocalLibraryDirectory(FilePath* result); | 90 bool GetLocalLibraryDirectory(FilePath* result); |
91 | 91 |
92 // Get the global Application Support directory (under /Library/). | 92 // Get the global Application Support directory (under /Library/). |
93 bool GetGlobalApplicationSupportDirectory(FilePath* result); | 93 bool GetGlobalApplicationSupportDirectory(FilePath* result); |
94 | 94 |
95 // Returns the NSBundle for the outer browser application, even when running | 95 // Returns the NSBundle for the outer browser application, even when running |
96 // inside the helper. In unbundled applications, such as tests, returns nil. | 96 // inside the helper. In unbundled applications, such as tests, returns nil. |
97 NSBundle* OuterAppBundle(); | 97 NSBundle* OuterAppBundle(); |
98 | 98 |
99 #endif // OS_MACOSX | 99 #endif // OS_MACOSX && !OS_IOS |
100 | 100 |
101 // Checks if the |process_type| has the rights to access the profile. | 101 // Checks if the |process_type| has the rights to access the profile. |
102 bool ProcessNeedsProfileDir(const std::string& process_type); | 102 bool ProcessNeedsProfileDir(const std::string& process_type); |
103 | 103 |
104 } // namespace chrome | 104 } // namespace chrome |
105 | 105 |
106 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ | 106 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ |
OLD | NEW |