OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 // This file declares path keys for the base module. These can be used with | 9 // This file declares path keys for the base module. These can be used with |
10 // the PathService to access various special directories and files. | 10 // the PathService to access various special directories and files. |
11 | 11 |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 | 13 |
14 #if defined(OS_WIN) | 14 #if defined(OS_WIN) |
15 #include "base/base_paths_win.h" | 15 #include "base/base_paths_win.h" |
16 #elif defined(OS_MACOSX) | 16 #elif defined(OS_MACOSX) |
17 #include "base/base_paths_mac.h" | 17 #include "base/base_paths_mac.h" |
18 #endif | 18 #endif |
19 | 19 |
20 namespace base { | 20 namespace base { |
21 | 21 |
22 enum { | 22 enum BasePathKey { |
23 PATH_START = 0, | 23 PATH_START = 0, |
24 | 24 |
25 DIR_CURRENT, // current directory | 25 DIR_CURRENT, // current directory |
26 DIR_EXE, // directory containing FILE_EXE | 26 DIR_EXE, // directory containing FILE_EXE |
27 DIR_MODULE, // directory containing FILE_MODULE | 27 DIR_MODULE, // directory containing FILE_MODULE |
28 DIR_TEMP, // temporary directory | 28 DIR_TEMP, // temporary directory |
29 FILE_EXE, // Path and filename of the current executable. | 29 FILE_EXE, // Path and filename of the current executable. |
30 FILE_MODULE, // Path and filename of the module containing the code for the | 30 FILE_MODULE, // Path and filename of the module containing the code for the |
31 // PathService (which could differ from FILE_EXE if the | 31 // PathService (which could differ from FILE_EXE if the |
32 // PathService were compiled into a shared object, for example). | 32 // PathService were compiled into a shared object, for example). |
(...skipping 10 matching lines...) Expand all Loading... |
43 #if defined(OS_ANDROID) | 43 #if defined(OS_ANDROID) |
44 DIR_ANDROID_APP_DATA, // Directory where to put android app's data. | 44 DIR_ANDROID_APP_DATA, // Directory where to put android app's data. |
45 #endif | 45 #endif |
46 | 46 |
47 PATH_END | 47 PATH_END |
48 }; | 48 }; |
49 | 49 |
50 } // namespace base | 50 } // namespace base |
51 | 51 |
52 #endif // BASE_BASE_PATHS_H_ | 52 #endif // BASE_BASE_PATHS_H_ |
OLD | NEW |