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> | 9 #include <string> |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 bool GetUserDocumentsDirectory(FilePath* result); | 44 bool GetUserDocumentsDirectory(FilePath* result); |
45 | 45 |
46 #if defined(OS_WIN) || defined(OS_LINUX) | 46 #if defined(OS_WIN) || defined(OS_LINUX) |
47 // Gets the path to a safe default download directory for a user. | 47 // Gets the path to a safe default download directory for a user. |
48 bool GetUserDownloadsDirectorySafe(FilePath* result); | 48 bool GetUserDownloadsDirectorySafe(FilePath* result); |
49 #endif | 49 #endif |
50 | 50 |
51 // Get the path to the user's downloads directory. | 51 // Get the path to the user's downloads directory. |
52 bool GetUserDownloadsDirectory(FilePath* result); | 52 bool GetUserDownloadsDirectory(FilePath* result); |
53 | 53 |
| 54 // Gets the path to the user's pictures directory. |
| 55 bool GetUserPicturesDirectory(FilePath* result); |
| 56 |
54 // The path to the user's desktop. | 57 // The path to the user's desktop. |
55 bool GetUserDesktop(FilePath* result); | 58 bool GetUserDesktop(FilePath* result); |
56 | 59 |
57 #if defined(OS_MACOSX) | 60 #if defined(OS_MACOSX) |
58 // The "versioned directory" is a directory in the browser .app bundle. It | 61 // The "versioned directory" is a directory in the browser .app bundle. It |
59 // contains the bulk of the application, except for the things that the system | 62 // contains the bulk of the application, except for the things that the system |
60 // requires be located at spepcific locations. The versioned directory is | 63 // requires be located at spepcific locations. The versioned directory is |
61 // in the .app at Contents/Versions/w.x.y.z. | 64 // in the .app at Contents/Versions/w.x.y.z. |
62 FilePath GetVersionedDirectory(); | 65 FilePath GetVersionedDirectory(); |
63 | 66 |
(...skipping 22 matching lines...) Expand all Loading... |
86 NSBundle* OuterAppBundle(); | 89 NSBundle* OuterAppBundle(); |
87 | 90 |
88 #endif // OS_MACOSX | 91 #endif // OS_MACOSX |
89 | 92 |
90 // Checks if the |process_type| has the rights to access the profile. | 93 // Checks if the |process_type| has the rights to access the profile. |
91 bool ProcessNeedsProfileDir(const std::string& process_type); | 94 bool ProcessNeedsProfileDir(const std::string& process_type); |
92 | 95 |
93 } // namespace chrome | 96 } // namespace chrome |
94 | 97 |
95 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ | 98 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ |
OLD | NEW |