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 BASE_BASE_PATHS_H_ | 5 #ifndef BASE_BASE_PATHS_H_ |
6 #define BASE_BASE_PATHS_H_ | 6 #define BASE_BASE_PATHS_H_ |
7 | 7 |
8 // This file declares path keys for the base module. These can be used with | 8 // This file declares path keys for the base 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 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #if defined(OS_WIN) | 12 #if defined(OS_WIN) |
13 #include "base/base_paths_win.h" | 13 #include "base/base_paths_win.h" |
14 #elif defined(OS_MACOSX) | 14 #elif defined(OS_MACOSX) |
15 #include "base/base_paths_mac.h" | 15 #include "base/base_paths_mac.h" |
16 #endif | 16 #endif |
17 #include "base/path_service.h" | |
18 | 17 |
19 namespace base { | 18 namespace base { |
20 | 19 |
21 enum { | 20 enum { |
22 PATH_START = 0, | 21 PATH_START = 0, |
23 | 22 |
24 DIR_CURRENT, // current directory | 23 DIR_CURRENT, // current directory |
25 DIR_EXE, // directory containing FILE_EXE | 24 DIR_EXE, // directory containing FILE_EXE |
26 DIR_MODULE, // directory containing FILE_MODULE | 25 DIR_MODULE, // directory containing FILE_MODULE |
27 DIR_TEMP, // temporary directory | 26 DIR_TEMP, // temporary directory |
28 FILE_EXE, // Path and filename of the current executable. | 27 FILE_EXE, // Path and filename of the current executable. |
29 FILE_MODULE, // Path and filename of the module containing the code for the | 28 FILE_MODULE, // Path and filename of the module containing the code for the |
30 // PathService (which could differ from FILE_EXE if the | 29 // PathService (which could differ from FILE_EXE if the |
31 // PathService were compiled into a shared object, for example). | 30 // PathService were compiled into a shared object, for example). |
32 DIR_SOURCE_ROOT, // Returns the root of the source tree. This key is useful | 31 DIR_SOURCE_ROOT, // Returns the root of the source tree. This key is useful |
33 // for tests that need to locate various resources. It | 32 // for tests that need to locate various resources. It |
34 // should not be used outside of test code. | 33 // should not be used outside of test code. |
| 34 #if defined(OS_LINUX) |
| 35 DIR_USER_CACHE, // Directory where user cache data resides. The Chromium |
| 36 // browser cache can be a subdirectory of DIR_USER_CACHE. |
| 37 // This is $XDG_CACHE_HOME on Linux. |
| 38 #endif |
35 | 39 |
36 PATH_END | 40 PATH_END |
37 }; | 41 }; |
38 | 42 |
39 } // namespace base | 43 } // namespace base |
40 | 44 |
41 #endif // BASE_BASE_PATHS_H_ | 45 #endif // BASE_BASE_PATHS_H_ |
OLD | NEW |