license.bot | bf09a50 | 2008-08-24 00:55:55 | [diff] [blame] | 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 | ||||
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] | ac510e1 | 2008-08-05 19:46:31 | [diff] [blame] | 11 | #include "base/basictypes.h" |
[email protected] | 5af2edb9 | 2008-08-08 20:16:08 | [diff] [blame] | 12 | #if defined(OS_WIN) |
[email protected] | ac510e1 | 2008-08-05 19:46:31 | [diff] [blame] | 13 | #include "base/base_paths_win.h" |
[email protected] | 5af2edb9 | 2008-08-08 20:16:08 | [diff] [blame] | 14 | #elif defined(OS_MACOSX) |
15 | #include "base/base_paths_mac.h" | ||||
[email protected] | ac510e1 | 2008-08-05 19:46:31 | [diff] [blame] | 16 | #endif |
[email protected] | 302831b | 2009-01-13 22:35:10 | [diff] [blame] | 17 | #include "base/path_service.h" |
[email protected] | ac510e1 | 2008-08-05 19:46:31 | [diff] [blame] | 18 | |
initial.commit | d7cae12 | 2008-07-26 21:49:38 | [diff] [blame] | 19 | namespace base { |
20 | |||||
21 | enum { | ||||
22 | PATH_START = 0, | ||||
23 | |||||
24 | DIR_CURRENT, // current directory | ||||
25 | DIR_EXE, // directory containing FILE_EXE | ||||
26 | DIR_MODULE, // directory containing FILE_MODULE | ||||
initial.commit | d7cae12 | 2008-07-26 21:49:38 | [diff] [blame] | 27 | DIR_TEMP, // temporary directory |
[email protected] | 5d1937bb | 2009-11-21 01:29:00 | [diff] [blame^] | 28 | FILE_EXE, // Path and filename of the current executable. |
29 | FILE_MODULE, // Path and filename of the module containing the code for the | ||||
30 | // PathService (which could differ from FILE_EXE if the | ||||
31 | // PathService were compiled into a shared object, for example). | ||||
32 | DIR_SOURCE_ROOT, // Returns the root of the source tree. This key is useful | ||||
33 | // for tests that need to locate various resources. It | ||||
34 | // should not be used outside of test code. | ||||
35 | |||||
initial.commit | d7cae12 | 2008-07-26 21:49:38 | [diff] [blame] | 36 | PATH_END |
37 | }; | ||||
38 | |||||
39 | } // namespace base | ||||
40 | |||||
[email protected] | 5af2edb9 | 2008-08-08 20:16:08 | [diff] [blame] | 41 | #endif // BASE_BASE_PATHS_H_ |