| 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 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 "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 | 12 |
| 13 #if defined(OS_WIN) | 13 #if defined(OS_WIN) |
| 14 #include "base/base_paths_win.h" | 14 #include "base/base_paths_win.h" |
| 15 #elif defined(OS_MACOSX) | 15 #elif defined(OS_MACOSX) |
| 16 #include "base/base_paths_mac.h" | 16 #include "base/base_paths_mac.h" |
| 17 #elif defined(OS_ANDROID) | 17 #elif defined(OS_ANDROID) |
| 18 #include "base/base_paths_android.h" | 18 #include "base/base_paths_android.h" |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 #if defined(OS_POSIX) | 21 #if defined(OS_POSIX) |
| 22 #include "base/base_paths_posix.h" | 22 #include "base/base_paths_posix.h" |
| 23 #endif | 23 #endif |
| 24 | 24 |
| 25 namespace base { | 25 namespace base { |
| 26 | 26 |
| 27 enum BasePathKey { | 27 enum BasePathKey { |
| 28 PATH_START = 0, | 28 PATH_START = 0, |
| 29 | 29 |
| 30 DIR_CURRENT, // current directory | 30 DIR_CURRENT, // Current directory. |
| 31 DIR_EXE, // directory containing FILE_EXE | 31 DIR_EXE, // Directory containing FILE_EXE. |
| 32 DIR_MODULE, // directory containing FILE_MODULE | 32 DIR_MODULE, // Directory containing FILE_MODULE. |
| 33 DIR_TEMP, // temporary directory | 33 DIR_TEMP, // Temporary directory. |
| 34 FILE_EXE, // Path and filename of the current executable. | 34 FILE_EXE, // Path and filename of the current executable. |
| 35 FILE_MODULE, // Path and filename of the module containing the code for the | 35 FILE_MODULE, // Path and filename of the module containing the code for |
| 36 // PathService (which could differ from FILE_EXE if the | 36 // the PathService (which could differ from FILE_EXE if the |
| 37 // PathService were compiled into a shared object, for example). | 37 // PathService were compiled into a shared object, for |
| 38 DIR_SOURCE_ROOT, // Returns the root of the source tree. This key is useful | 38 // example). |
| 39 // for tests that need to locate various resources. It | 39 DIR_SOURCE_ROOT, // Returns the root of the source tree. This key is useful |
| 40 // should not be used outside of test code. | 40 // for tests that need to locate various resources. It |
| 41 // should not be used outside of test code. |
| 41 DIR_USER_DESKTOP, // The current user's Desktop. | 42 DIR_USER_DESKTOP, // The current user's Desktop. |
| 42 | 43 |
| 44 DIR_TEST_DATA, // Used only for testing. |
| 45 |
| 43 PATH_END | 46 PATH_END |
| 44 }; | 47 }; |
| 45 | 48 |
| 46 } // namespace base | 49 } // namespace base |
| 47 | 50 |
| 48 #endif // BASE_BASE_PATHS_H_ | 51 #endif // BASE_BASE_PATHS_H_ |
| OLD | NEW |