[email protected] | b311178 | 2012-03-22 21:44:31 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
license.bot | bf09a50 | 2008-08-24 00:55:55 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
initial.commit | d7cae12 | 2008-07-26 21:49:38 | [diff] [blame] | 4 | |
[email protected] | 5af2edb9 | 2008-08-08 20:16:08 | [diff] [blame] | 5 | #ifndef BASE_BASE_PATHS_H_ |
| 6 | #define BASE_BASE_PATHS_H_ |
initial.commit | d7cae12 | 2008-07-26 21:49:38 | [diff] [blame] | 7 | |
| 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. |
| 10 | |
[email protected] | 2edc286 | 2011-04-04 18:04:37 | [diff] [blame] | 11 | #include "build/build_config.h" |
| 12 | |
[email protected] | 5af2edb9 | 2008-08-08 20:16:08 | [diff] [blame] | 13 | #if defined(OS_WIN) |
[email protected] | ac510e1 | 2008-08-05 19:46:31 | [diff] [blame] | 14 | #include "base/base_paths_win.h" |
[email protected] | 5af2edb9 | 2008-08-08 20:16:08 | [diff] [blame] | 15 | #elif defined(OS_MACOSX) |
| 16 | #include "base/base_paths_mac.h" |
[email protected] | b311178 | 2012-03-22 21:44:31 | [diff] [blame] | 17 | #elif defined(OS_ANDROID) |
| 18 | #include "base/base_paths_android.h" |
[email protected] | ac510e1 | 2008-08-05 19:46:31 | [diff] [blame] | 19 | #endif |
| 20 | |
[email protected] | dea1d7d | 2012-09-20 16:24:52 | [diff] [blame] | 21 | #if defined(OS_POSIX) |
| 22 | #include "base/base_paths_posix.h" |
| 23 | #endif |
| 24 | |
initial.commit | d7cae12 | 2008-07-26 21:49:38 | [diff] [blame] | 25 | namespace base { |
| 26 | |
[email protected] | d643172 | 2011-09-01 00:46:33 | [diff] [blame] | 27 | enum BasePathKey { |
initial.commit | d7cae12 | 2008-07-26 21:49:38 | [diff] [blame] | 28 | PATH_START = 0, |
| 29 | |
[email protected] | c4803e43 | 2013-03-28 00:40:04 | [diff] [blame] | 30 | DIR_CURRENT, // Current directory. |
| 31 | DIR_EXE, // Directory containing FILE_EXE. |
| 32 | DIR_MODULE, // Directory containing FILE_MODULE. |
| 33 | DIR_TEMP, // Temporary directory. |
| 34 | FILE_EXE, // Path and filename of the current executable. |
| 35 | FILE_MODULE, // Path and filename of the module containing the code for |
| 36 | // the PathService (which could differ from FILE_EXE if the |
| 37 | // PathService were compiled into a shared object, for |
| 38 | // example). |
| 39 | DIR_SOURCE_ROOT, // Returns the root of the source tree. This key is useful |
| 40 | // for tests that need to locate various resources. It |
| 41 | // should not be used outside of test code. |
[email protected] | dea1d7d | 2012-09-20 16:24:52 | [diff] [blame] | 42 | DIR_USER_DESKTOP, // The current user's Desktop. |
[email protected] | 5d1937bb | 2009-11-21 01:29:00 | [diff] [blame] | 43 | |
[email protected] | c4803e43 | 2013-03-28 00:40:04 | [diff] [blame] | 44 | DIR_TEST_DATA, // Used only for testing. |
| 45 | |
initial.commit | d7cae12 | 2008-07-26 21:49:38 | [diff] [blame] | 46 | PATH_END |
| 47 | }; |
| 48 | |
| 49 | } // namespace base |
| 50 | |
[email protected] | 5af2edb9 | 2008-08-08 20:16:08 | [diff] [blame] | 51 | #endif // BASE_BASE_PATHS_H_ |