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 // The path to the user's desktop. | |
69 bool GetUserDesktop(FilePath* result); | |
70 | |
71 #if defined(OS_MACOSX) | 68 #if defined(OS_MACOSX) |
72 // 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 |
73 // 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 |
74 // requires be located at spepcific locations. The versioned directory is | 71 // requires be located at spepcific locations. The versioned directory is |
75 // in the .app at Contents/Versions/w.x.y.z. | 72 // in the .app at Contents/Versions/w.x.y.z. |
76 FilePath GetVersionedDirectory(); | 73 FilePath GetVersionedDirectory(); |
77 | 74 |
78 // This overrides the directory returned by |GetVersionedDirectory()|, to be | 75 // This overrides the directory returned by |GetVersionedDirectory()|, to be |
79 // used when |GetVersionedDirectory()| can't automatically determine the proper | 76 // used when |GetVersionedDirectory()| can't automatically determine the proper |
80 // 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., |
(...skipping 19 matching lines...) Expand all Loading... |
100 NSBundle* OuterAppBundle(); | 97 NSBundle* OuterAppBundle(); |
101 | 98 |
102 #endif // OS_MACOSX | 99 #endif // OS_MACOSX |
103 | 100 |
104 // 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. |
105 bool ProcessNeedsProfileDir(const std::string& process_type); | 102 bool ProcessNeedsProfileDir(const std::string& process_type); |
106 | 103 |
107 } // namespace chrome | 104 } // namespace chrome |
108 | 105 |
109 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ | 106 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ |
OLD | NEW |