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_H__ | 5 #ifndef CHROME_COMMON_CHROME_PATHS_H__ |
6 #define CHROME_COMMON_CHROME_PATHS_H__ | 6 #define CHROME_COMMON_CHROME_PATHS_H__ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 namespace base { | 10 namespace base { |
11 class FilePath; | 11 class FilePath; |
12 } | 12 } |
13 | 13 |
14 // This file declares path keys for the chrome module. These can be used with | 14 // This file declares path keys for the chrome module. These can be used with |
15 // the PathService to access various special directories and files. | 15 // the PathService to access various special directories and files. |
16 | 16 |
17 namespace chrome { | 17 namespace chrome { |
18 | 18 |
19 enum { | 19 enum { |
20 PATH_START = 1000, | 20 PATH_START = 1000, |
21 | 21 |
22 DIR_APP = PATH_START, // Directory where dlls and data reside. | 22 DIR_APP = PATH_START, // Directory where dlls and data reside. |
23 DIR_LOGS, // Directory where logs should be written. | 23 DIR_LOGS, // Directory where logs should be written. |
24 DIR_USER_DATA, // Directory where user data can be written. | 24 DIR_USER_DATA, // Directory where user data can be written. |
25 DIR_CRASH_DUMPS, // Directory where crash dumps are written. | 25 DIR_CRASH_DUMPS, // Directory where crash dumps are written. |
26 #if defined(OS_WIN) | 26 #if defined(OS_WIN) |
27 DIR_WATCHER_DATA, // Directory where the Chrome watcher stores | 27 DIR_WATCHER_DATA, // Directory where the Chrome watcher stores |
28 // data. | 28 // data. |
| 29 DIR_ROAMING_USER_DATA, // Directory where user data is stored that |
| 30 // needs to be roamed between computers. |
29 #endif | 31 #endif |
30 DIR_RESOURCES, // Directory containing separate file resources | 32 DIR_RESOURCES, // Directory containing separate file resources |
31 // used by Chrome at runtime. | 33 // used by Chrome at runtime. |
32 DIR_INSPECTOR_DEBUG, // Directory where non-bundled and non-minified | 34 DIR_INSPECTOR_DEBUG, // Directory where non-bundled and non-minified |
33 // web inspector is located. | 35 // web inspector is located. |
34 DIR_APP_DICTIONARIES, // Directory where the global dictionaries are. | 36 DIR_APP_DICTIONARIES, // Directory where the global dictionaries are. |
35 DIR_USER_DOCUMENTS, // Directory for a user's "My Documents". | 37 DIR_USER_DOCUMENTS, // Directory for a user's "My Documents". |
36 DIR_USER_MUSIC, // Directory for a user's music. | 38 DIR_USER_MUSIC, // Directory for a user's music. |
37 DIR_USER_PICTURES, // Directory for a user's pictures. | 39 DIR_USER_PICTURES, // Directory for a user's pictures. |
38 DIR_USER_VIDEOS, // Directory for a user's videos. | 40 DIR_USER_VIDEOS, // Directory for a user's videos. |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 // Call once to register the provider for the path keys defined above. | 142 // Call once to register the provider for the path keys defined above. |
141 void RegisterPathProvider(); | 143 void RegisterPathProvider(); |
142 | 144 |
143 // Get or set the invalid user data dir that was originally specified. | 145 // Get or set the invalid user data dir that was originally specified. |
144 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir); | 146 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir); |
145 const base::FilePath& GetInvalidSpecifiedUserDataDir(); | 147 const base::FilePath& GetInvalidSpecifiedUserDataDir(); |
146 | 148 |
147 } // namespace chrome | 149 } // namespace chrome |
148 | 150 |
149 #endif // CHROME_COMMON_CHROME_PATHS_H__ | 151 #endif // CHROME_COMMON_CHROME_PATHS_H__ |
OLD | NEW |