blob: ef6aa82836205b7ac7fbc270abdeec2485cc2236 [file] [log] [blame]
[email protected]b3111782012-03-22 21:44:311// Copyright (c) 2012 The Chromium Authors. All rights reserved.
license.botbf09a502008-08-24 00:55:552// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
initial.commitd7cae122008-07-26 21:49:384
[email protected]5af2edb92008-08-08 20:16:085#ifndef BASE_BASE_PATHS_H_
6#define BASE_BASE_PATHS_H_
initial.commitd7cae122008-07-26 21:49:387
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]2edc2862011-04-04 18:04:3711#include "build/build_config.h"
12
[email protected]5af2edb92008-08-08 20:16:0813#if defined(OS_WIN)
[email protected]ac510e12008-08-05 19:46:3114#include "base/base_paths_win.h"
[email protected]5af2edb92008-08-08 20:16:0815#elif defined(OS_MACOSX)
16#include "base/base_paths_mac.h"
[email protected]b3111782012-03-22 21:44:3117#elif defined(OS_ANDROID)
18#include "base/base_paths_android.h"
[email protected]ac510e12008-08-05 19:46:3119#endif
20
[email protected]dea1d7d2012-09-20 16:24:5221#if defined(OS_POSIX)
22#include "base/base_paths_posix.h"
23#endif
24
initial.commitd7cae122008-07-26 21:49:3825namespace base {
26
[email protected]d6431722011-09-01 00:46:3327enum BasePathKey {
initial.commitd7cae122008-07-26 21:49:3828 PATH_START = 0,
29
[email protected]c4803e432013-03-28 00:40:0430 DIR_CURRENT, // Current directory.
31 DIR_EXE, // Directory containing FILE_EXE.
32 DIR_MODULE, // Directory containing FILE_MODULE.
33 DIR_TEMP, // Temporary directory.
[email protected]ffaee18e2014-02-19 20:34:2334 DIR_HOME, // User's root home directory. On Windows this will look
pmonette565a8802016-06-21 00:03:4335 // like "C:\Users\<user>" which isn't necessarily a great
36 // place to put files.
[email protected]c4803e432013-03-28 00:40:0437 FILE_EXE, // Path and filename of the current executable.
38 FILE_MODULE, // Path and filename of the module containing the code for
39 // the PathService (which could differ from FILE_EXE if the
40 // PathService were compiled into a shared object, for
41 // example).
42 DIR_SOURCE_ROOT, // Returns the root of the source tree. This key is useful
43 // for tests that need to locate various resources. It
44 // should not be used outside of test code.
[email protected]dea1d7d2012-09-20 16:24:5245 DIR_USER_DESKTOP, // The current user's Desktop.
[email protected]5d1937bb2009-11-21 01:29:0046
[email protected]c4803e432013-03-28 00:40:0447 DIR_TEST_DATA, // Used only for testing.
48
initial.commitd7cae122008-07-26 21:49:3849 PATH_END
50};
51
52} // namespace base
53
[email protected]5af2edb92008-08-08 20:16:0854#endif // BASE_BASE_PATHS_H_