| 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 #include "build/build_config.h" |
| 9 |
| 8 // This file declares path keys for the chrome module. These can be used with | 10 // This file declares path keys for the chrome module. These can be used with |
| 9 // the PathService to access various special directories and files. | 11 // the PathService to access various special directories and files. |
| 10 | 12 |
| 11 namespace chrome { | 13 namespace chrome { |
| 12 | 14 |
| 13 enum { | 15 enum { |
| 14 PATH_START = 1000, | 16 PATH_START = 1000, |
| 15 | 17 |
| 16 DIR_APP = PATH_START, // directory where dlls and data reside | 18 DIR_APP = PATH_START, // directory where dlls and data reside |
| 17 DIR_LOGS, // directory where logs should be written | 19 DIR_LOGS, // directory where logs should be written |
| 18 DIR_USER_DATA, // directory where user data can be written | 20 DIR_USER_DATA, // directory where user data can be written |
| 19 DIR_USER_CACHE, // directory where user cache data resides | 21 DIR_USER_CACHE, // directory where user cache data resides |
| 20 DIR_CRASH_DUMPS, // directory where crash dumps are written | 22 DIR_CRASH_DUMPS, // directory where crash dumps are written |
| 21 DIR_USER_DESKTOP, // directory that correspond to the desktop | 23 DIR_USER_DESKTOP, // directory that correspond to the desktop |
| 22 DIR_INSPECTOR, // directory where web inspector is located | 24 DIR_INSPECTOR, // directory where web inspector is located |
| 23 DIR_APP_DICTIONARIES, // directory where the global dictionaries are | 25 DIR_APP_DICTIONARIES, // directory where the global dictionaries are |
| 24 DIR_USER_DOCUMENTS, // directory for a user's "My Documents" | 26 DIR_USER_DOCUMENTS, // directory for a user's "My Documents" |
| 25 DIR_DEFAULT_DOWNLOADS, // directory for a user's "My Documents/Downloads" | 27 DIR_DEFAULT_DOWNLOADS, // directory for a user's "My Documents/Downloads" |
| 26 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 |
| 27 // embedded resources (version, strings, images, etc.) | 29 // embedded resources (version, strings, images, etc.) |
| 28 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/ |
| 29 // installation-specific state is saved | 31 // installation-specific state is saved |
| 30 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 |
| 31 // recorded browser events for playback. | 33 // recorded browser events for playback. |
| 32 FILE_GEARS_PLUGIN, // full path to the gears.dll plugin file. | 34 FILE_GEARS_PLUGIN, // full path to the gears.dll plugin file. |
| 33 FILE_LIBAVCODEC, // full path to libavcodec media decoding library. | 35 FILE_LIBAVCODEC, // full path to libavcodec media decoding library. |
| 34 FILE_LIBAVFORMAT, // full path to libavformat media parsing library. | 36 FILE_LIBAVFORMAT, // full path to libavformat media parsing library. |
| 35 FILE_LIBAVUTIL, // full path to libavutil media utility library. | 37 FILE_LIBAVUTIL, // full path to libavutil media utility library. |
| 38 #if defined(OS_CHROMEOS) |
| 39 FILE_CHROMEOS_API, // full path to chrome os api shared object. |
| 40 #endif |
| 41 |
| 36 | 42 |
| 37 // Valid only in development environment; TODO(darin): move these | 43 // Valid only in development environment; TODO(darin): move these |
| 38 DIR_TEST_DATA, // directory where unit test data resides | 44 DIR_TEST_DATA, // directory where unit test data resides |
| 39 DIR_TEST_TOOLS, // directory where unit test tools reside | 45 DIR_TEST_TOOLS, // directory where unit test tools reside |
| 40 | 46 |
| 41 PATH_END | 47 PATH_END |
| 42 }; | 48 }; |
| 43 | 49 |
| 44 // Call once to register the provider for the path keys defined above. | 50 // Call once to register the provider for the path keys defined above. |
| 45 void RegisterPathProvider(); | 51 void RegisterPathProvider(); |
| 46 | 52 |
| 47 } // namespace chrome | 53 } // namespace chrome |
| 48 | 54 |
| 49 #endif // CHROME_COMMON_CHROME_PATHS_H__ | 55 #endif // CHROME_COMMON_CHROME_PATHS_H__ |
| OLD | NEW |