OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This file declares path keys for the chrome module. These can be used with | 8 // This file declares path keys for the chrome module. These can be used with |
9 // the PathService to access various special directories and files. | 9 // the PathService to access various special directories and files. |
10 | 10 |
11 namespace chrome { | 11 namespace chrome { |
12 | 12 |
13 enum { | 13 enum { |
14 PATH_START = 1000, | 14 PATH_START = 1000, |
15 | 15 |
16 DIR_APP = PATH_START, // directory where dlls and data reside | 16 DIR_APP = PATH_START, // directory where dlls and data reside |
17 DIR_LOGS, // directory where logs should be written | 17 DIR_LOGS, // directory where logs should be written |
18 DIR_USER_DATA, // directory where user data can be written | 18 DIR_USER_DATA, // directory where user data can be written |
19 DIR_CRASH_DUMPS, // directory where crash dumps are written | 19 DIR_CRASH_DUMPS, // directory where crash dumps are written |
20 DIR_USER_DESKTOP, // directory that correspond to the desktop | 20 DIR_USER_DESKTOP, // directory that correspond to the desktop |
21 DIR_RESOURCES, // directory where application resources are stored | 21 DIR_RESOURCES, // directory where application resources are stored |
22 DIR_INSPECTOR, // directory where web inspector is located | 22 DIR_INSPECTOR, // directory where web inspector is located |
23 DIR_THEMES, // directory where theme dll files are stored | 23 DIR_THEMES, // directory where theme dll files are stored |
24 DIR_LOCALES, // directory where locale resources are stored | 24 DIR_LOCALES, // directory where locale resources are stored |
25 DIR_APP_DICTIONARIES, // directory where the global dictionaries are | 25 DIR_APP_DICTIONARIES, // directory where the global dictionaries are |
26 DIR_USER_DOCUMENTS, // directory for a user's "My Documents" | 26 DIR_USER_DOCUMENTS, // directory for a user's "My Documents" |
| 27 DIR_USER_SCRIPTS, // directory where Greasemonkey user scripts are stored |
27 FILE_RESOURCE_MODULE, // full path and filename of the module that contains | 28 FILE_RESOURCE_MODULE, // full path and filename of the module that contains |
28 // embedded resources (version, strings, images, etc.) | 29 // embedded resources (version, strings, images, etc.) |
29 FILE_LOCAL_STATE, // path and filename to the file in which machine/ | 30 FILE_LOCAL_STATE, // path and filename to the file in which machine/ |
30 // installation-specific state is saved | 31 // installation-specific state is saved |
31 FILE_RECORDED_SCRIPT, // full path to the script.log file that contains | 32 FILE_RECORDED_SCRIPT, // full path to the script.log file that contains |
32 // recorded browser events for playback. | 33 // recorded browser events for playback. |
33 FILE_GEARS_PLUGIN, // full path to the gears.dll plugin file. | 34 FILE_GEARS_PLUGIN, // full path to the gears.dll plugin file. |
34 | 35 |
35 // Valid only in development environment; TODO(darin): move these | 36 // Valid only in development environment; TODO(darin): move these |
36 DIR_TEST_DATA, // directory where unit test data resides | 37 DIR_TEST_DATA, // directory where unit test data resides |
37 DIR_TEST_TOOLS, // directory where unit test tools reside | 38 DIR_TEST_TOOLS, // directory where unit test tools reside |
38 FILE_TEST_SERVER, // simple HTTP server for testing the network stack | 39 FILE_TEST_SERVER, // simple HTTP server for testing the network stack |
39 FILE_PYTHON_RUNTIME, // Python runtime, used for running the test server | 40 FILE_PYTHON_RUNTIME, // Python runtime, used for running the test server |
40 | 41 |
41 PATH_END | 42 PATH_END |
42 }; | 43 }; |
43 | 44 |
44 // Call once to register the provider for the path keys defined above. | 45 // Call once to register the provider for the path keys defined above. |
45 void RegisterPathProvider(); | 46 void RegisterPathProvider(); |
46 | 47 |
47 } // namespace chrome | 48 } // namespace chrome |
48 | 49 |
49 #endif // CHROME_COMMON_CHROME_PATHS_H__ | 50 #endif // CHROME_COMMON_CHROME_PATHS_H__ |
50 | 51 |
OLD | NEW |