summaryrefslogtreecommitdiffstats
path: root/base/base_paths.h
diff options
context:
space:
mode:
authorerikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-05 19:46:31 +0000
committererikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-05 19:46:31 +0000
commitac510e1f4a322381d1e82c9669bfd3c05113d6e6 (patch)
treef88fa9f412405d33f08755171503dac2c77d5e0b /base/base_paths.h
parent6d55c2fbc384e3f02a89b69e29fd8934ba2f0966 (diff)
downloadchromium_src-ac510e1f4a322381d1e82c9669bfd3c05113d6e6.zip
chromium_src-ac510e1f4a322381d1e82c9669bfd3c05113d6e6.tar.gz
chromium_src-ac510e1f4a322381d1e82c9669bfd3c05113d6e6.tar.bz2
refactor base_paths so that windows-specific paths are pulled out into their own file. Note that some of the same path key names will exist in other platform-specific files. For example, base_paths_mac.mm will have FILE_EXE and DIR_APP_DATA (among others).
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@389 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base_paths.h')
-rw-r--r--base/base_paths.h22
1 files changed, 5 insertions, 17 deletions
diff --git a/base/base_paths.h b/base/base_paths.h
index 60a59ca..ba844b8 100644
--- a/base/base_paths.h
+++ b/base/base_paths.h
@@ -33,6 +33,11 @@
// This file declares path keys for the base module. These can be used with
// the PathService to access various special directories and files.
+#include "base/basictypes.h"
+#ifdef OS_WIN
+#include "base/base_paths_win.h"
+#endif
+
namespace base {
enum {
@@ -41,27 +46,10 @@ enum {
DIR_CURRENT, // current directory
DIR_EXE, // directory containing FILE_EXE
DIR_MODULE, // directory containing FILE_MODULE
- FILE_EXE, // path and filename of the current executable
- FILE_MODULE, // path and filename of the module containing the code for the
- // PathService (which could differ from FILE_EXE if the
- // PathService were compiled into a DLL, for example)
DIR_TEMP, // temporary directory
- DIR_WINDOWS, // Windows directory, usually "c:\windows"
- DIR_SYSTEM, // Usually c:\windows\system32"
- DIR_PROGRAM_FILES, // Usually c:\program files
-
DIR_SOURCE_ROOT, // Returns the root of the source tree. This key is useful
// for tests that need to locate various resources. It
// should not be used outside of test code.
- DIR_APP_DATA, // Application Data directory under the user profile.
- DIR_LOCAL_APP_DATA_LOW, // Local AppData directory for low integrity level.
- DIR_LOCAL_APP_DATA, // "Local Settings\Application Data" directory under the
- // user profile.
- DIR_IE_INTERNET_CACHE, // Temporary Internet Files directory.
- DIR_COMMON_START_MENU, // Usually "C:\Documents and Settings\All Users\
- // Start Menu\Programs"
- DIR_START_MENU, // Usually "C:\Documents and Settings\<user>\
- // Start Menu\Programs"
PATH_END
};