jhawkins@chromium.org | 8e73d06 | 2011-04-05 03:04:37 +0900 | [diff] [blame^] | 1 | // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
license.bot | f003cfe | 2008-08-24 09:55:55 +0900 | [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 | 3f4a732 | 2008-07-27 06:49:38 +0900 | [diff] [blame] | 4 | |
erikkay@google.com | 9fc57d0 | 2008-08-09 05:16:08 +0900 | [diff] [blame] | 5 | #ifndef BASE_BASE_PATHS_H_ |
| 6 | #define BASE_BASE_PATHS_H_ |
thakis@chromium.org | 01d1452 | 2010-07-27 08:08:24 +0900 | [diff] [blame] | 7 | #pragma once |
initial.commit | 3f4a732 | 2008-07-27 06:49:38 +0900 | [diff] [blame] | 8 | |
| 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. |
| 11 | |
jhawkins@chromium.org | 8e73d06 | 2011-04-05 03:04:37 +0900 | [diff] [blame^] | 12 | #include "build/build_config.h" |
| 13 | |
erikkay@google.com | 9fc57d0 | 2008-08-09 05:16:08 +0900 | [diff] [blame] | 14 | #if defined(OS_WIN) |
erikkay@google.com | c7980ee | 2008-08-06 04:46:31 +0900 | [diff] [blame] | 15 | #include "base/base_paths_win.h" |
erikkay@google.com | 9fc57d0 | 2008-08-09 05:16:08 +0900 | [diff] [blame] | 16 | #elif defined(OS_MACOSX) |
| 17 | #include "base/base_paths_mac.h" |
erikkay@google.com | c7980ee | 2008-08-06 04:46:31 +0900 | [diff] [blame] | 18 | #endif |
| 19 | |
initial.commit | 3f4a732 | 2008-07-27 06:49:38 +0900 | [diff] [blame] | 20 | namespace base { |
| 21 | |
| 22 | enum { |
| 23 | PATH_START = 0, |
| 24 | |
| 25 | DIR_CURRENT, // current directory |
| 26 | DIR_EXE, // directory containing FILE_EXE |
| 27 | DIR_MODULE, // directory containing FILE_MODULE |
initial.commit | 3f4a732 | 2008-07-27 06:49:38 +0900 | [diff] [blame] | 28 | DIR_TEMP, // temporary directory |
evan@chromium.org | c136509 | 2009-11-21 10:29:00 +0900 | [diff] [blame] | 29 | FILE_EXE, // Path and filename of the current executable. |
| 30 | FILE_MODULE, // Path and filename of the module containing the code for the |
| 31 | // PathService (which could differ from FILE_EXE if the |
| 32 | // PathService were compiled into a shared object, for example). |
| 33 | DIR_SOURCE_ROOT, // Returns the root of the source tree. This key is useful |
| 34 | // for tests that need to locate various resources. It |
| 35 | // should not be used outside of test code. |
thestig@chromium.org | 5813f9d | 2009-12-03 10:07:12 +0900 | [diff] [blame] | 36 | #if defined(OS_POSIX) |
viettrungluu@chromium.org | 366266c | 2010-11-24 11:23:15 +0900 | [diff] [blame] | 37 | DIR_CACHE, // Directory where to put cache data. Note this is |
| 38 | // *not* where the browser cache lives, but the |
| 39 | // browser cache can be a subdirectory. |
| 40 | // This is $XDG_CACHE_HOME on Linux and |
| 41 | // ~/Library/Caches on Mac. |
thestig@chromium.org | eea8306 | 2009-12-02 17:45:01 +0900 | [diff] [blame] | 42 | #endif |
evan@chromium.org | c136509 | 2009-11-21 10:29:00 +0900 | [diff] [blame] | 43 | |
initial.commit | 3f4a732 | 2008-07-27 06:49:38 +0900 | [diff] [blame] | 44 | PATH_END |
| 45 | }; |
| 46 | |
| 47 | } // namespace base |
| 48 | |
erikkay@google.com | 9fc57d0 | 2008-08-09 05:16:08 +0900 | [diff] [blame] | 49 | #endif // BASE_BASE_PATHS_H_ |