Define DevTools content API
[chromium-blink-merge.git] / base / base_paths.h
blob708d8e8b1cd320707017b13aefe0e0022164ec45
1 // Copyright (c) 2011 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.
5 #ifndef BASE_BASE_PATHS_H_
6 #define BASE_BASE_PATHS_H_
7 #pragma once
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.
12 #include "build/build_config.h"
14 #if defined(OS_WIN)
15 #include "base/base_paths_win.h"
16 #elif defined(OS_MACOSX)
17 #include "base/base_paths_mac.h"
18 #endif
20 namespace base {
22 enum BasePathKey {
23 PATH_START = 0,
25 DIR_CURRENT, // current directory
26 DIR_EXE, // directory containing FILE_EXE
27 DIR_MODULE, // directory containing FILE_MODULE
28 DIR_TEMP, // temporary directory
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.
36 #if defined(OS_POSIX)
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.
42 #endif
43 #if defined(OS_ANDROID)
44 DIR_ANDROID_APP_DATA, // Directory where to put android app's data.
45 #endif
47 PATH_END
50 } // namespace base
52 #endif // BASE_BASE_PATHS_H_