Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: base/base_paths.h

Issue 159833003: Add support for GetHomeDir for Mac and Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | base/base_paths.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_BASE_PATHS_H_ 5 #ifndef BASE_BASE_PATHS_H_
6 #define BASE_BASE_PATHS_H_ 6 #define BASE_BASE_PATHS_H_
7 7
8 // This file declares path keys for the base module. These can be used with 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. 9 // the PathService to access various special directories and files.
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 namespace base { 25 namespace base {
26 26
27 enum BasePathKey { 27 enum BasePathKey {
28 PATH_START = 0, 28 PATH_START = 0,
29 29
30 DIR_CURRENT, // Current directory. 30 DIR_CURRENT, // Current directory.
31 DIR_EXE, // Directory containing FILE_EXE. 31 DIR_EXE, // Directory containing FILE_EXE.
32 DIR_MODULE, // Directory containing FILE_MODULE. 32 DIR_MODULE, // Directory containing FILE_MODULE.
33 DIR_TEMP, // Temporary directory. 33 DIR_TEMP, // Temporary directory.
34 DIR_HOME, // User's root home directory. On Windows this will look
35 // like "C:\Users\you" (or on XP
36 // "C:\Document and Settings\you") which isn't necessarily
37 // a great place to put files.
34 FILE_EXE, // Path and filename of the current executable. 38 FILE_EXE, // Path and filename of the current executable.
35 FILE_MODULE, // Path and filename of the module containing the code for 39 FILE_MODULE, // Path and filename of the module containing the code for
36 // the PathService (which could differ from FILE_EXE if the 40 // the PathService (which could differ from FILE_EXE if the
37 // PathService were compiled into a shared object, for 41 // PathService were compiled into a shared object, for
38 // example). 42 // example).
39 DIR_SOURCE_ROOT, // Returns the root of the source tree. This key is useful 43 DIR_SOURCE_ROOT, // Returns the root of the source tree. This key is useful
40 // for tests that need to locate various resources. It 44 // for tests that need to locate various resources. It
41 // should not be used outside of test code. 45 // should not be used outside of test code.
42 DIR_USER_DESKTOP, // The current user's Desktop. 46 DIR_USER_DESKTOP, // The current user's Desktop.
43 47
44 DIR_TEST_DATA, // Used only for testing. 48 DIR_TEST_DATA, // Used only for testing.
45 49
46 PATH_END 50 PATH_END
47 }; 51 };
48 52
49 } // namespace base 53 } // namespace base
50 54
51 #endif // BASE_BASE_PATHS_H_ 55 #endif // BASE_BASE_PATHS_H_
OLDNEW
« no previous file with comments | « no previous file | base/base_paths.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698