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 |
68 #if defined(OS_MACOSX) | 71 #if defined(OS_MACOSX) |
69 // The "versioned directory" is a directory in the browser .app bundle. It | 72 // 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 | 73 // contains the bulk of the application, except for the things that the system |
71 // requires be located at spepcific locations. The versioned directory is | 74 // requires be located at spepcific locations. The versioned directory is |
72 // in the .app at Contents/Versions/w.x.y.z. | 75 // in the .app at Contents/Versions/w.x.y.z. |
73 FilePath GetVersionedDirectory(); | 76 FilePath GetVersionedDirectory(); |
74 | 77 |
75 // This overrides the directory returned by |GetVersionedDirectory()|, to be | 78 // This overrides the directory returned by |GetVersionedDirectory()|, to be |
76 // used when |GetVersionedDirectory()| can't automatically determine the proper | 79 // 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., | 80 // location. This is the case when the browser didn't load itself but by, e.g., |
(...skipping 19 matching lines...) Expand all Loading... |
97 NSBundle* OuterAppBundle(); | 100 NSBundle* OuterAppBundle(); |
98 | 101 |
99 #endif // OS_MACOSX | 102 #endif // OS_MACOSX |
100 | 103 |
101 // Checks if the |process_type| has the rights to access the profile. | 104 // Checks if the |process_type| has the rights to access the profile. |
102 bool ProcessNeedsProfileDir(const std::string& process_type); | 105 bool ProcessNeedsProfileDir(const std::string& process_type); |
103 | 106 |
104 } // namespace chrome | 107 } // namespace chrome |
105 | 108 |
106 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ | 109 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ |
OLD | NEW |