Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
michael@0 | 2 | // Use of this source code is governed by a BSD-style license that can be |
michael@0 | 3 | // found in the LICENSE file. |
michael@0 | 4 | |
michael@0 | 5 | #ifndef BASE_BASE_PATHS_H_ |
michael@0 | 6 | #define BASE_BASE_PATHS_H_ |
michael@0 | 7 | |
michael@0 | 8 | // This file declares path keys for the base module. These can be used with |
michael@0 | 9 | // the PathService to access various special directories and files. |
michael@0 | 10 | |
michael@0 | 11 | #include "build/build_config.h" |
michael@0 | 12 | |
michael@0 | 13 | #if defined(OS_WIN) |
michael@0 | 14 | #include "base/base_paths_win.h" |
michael@0 | 15 | #elif defined(OS_MACOSX) |
michael@0 | 16 | #include "base/base_paths_mac.h" |
michael@0 | 17 | #elif defined(OS_ANDROID) |
michael@0 | 18 | #include "base/base_paths_android.h" |
michael@0 | 19 | #endif |
michael@0 | 20 | |
michael@0 | 21 | #if defined(OS_POSIX) |
michael@0 | 22 | #include "base/base_paths_posix.h" |
michael@0 | 23 | #endif |
michael@0 | 24 | |
michael@0 | 25 | namespace base { |
michael@0 | 26 | |
michael@0 | 27 | enum BasePathKey { |
michael@0 | 28 | PATH_START = 0, |
michael@0 | 29 | |
michael@0 | 30 | DIR_CURRENT, // Current directory. |
michael@0 | 31 | DIR_EXE, // Directory containing FILE_EXE. |
michael@0 | 32 | DIR_MODULE, // Directory containing FILE_MODULE. |
michael@0 | 33 | DIR_TEMP, // Temporary directory. |
michael@0 | 34 | FILE_EXE, // Path and filename of the current executable. |
michael@0 | 35 | FILE_MODULE, // Path and filename of the module containing the code for |
michael@0 | 36 | // the PathService (which could differ from FILE_EXE if the |
michael@0 | 37 | // PathService were compiled into a shared object, for |
michael@0 | 38 | // example). |
michael@0 | 39 | DIR_SOURCE_ROOT, // Returns the root of the source tree. This key is useful |
michael@0 | 40 | // for tests that need to locate various resources. It |
michael@0 | 41 | // should not be used outside of test code. |
michael@0 | 42 | DIR_USER_DESKTOP, // The current user's Desktop. |
michael@0 | 43 | |
michael@0 | 44 | DIR_TEST_DATA, // Used only for testing. |
michael@0 | 45 | |
michael@0 | 46 | PATH_END |
michael@0 | 47 | }; |
michael@0 | 48 | |
michael@0 | 49 | } // namespace base |
michael@0 | 50 | |
michael@0 | 51 | #endif // BASE_BASE_PATHS_H_ |