summaryrefslogtreecommitdiffstats
path: root/base/base_paths.h
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-21 01:29:00 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-21 01:29:00 +0000
commit5d1937bb5d9137cbaa1c947c383c3742179062a9 (patch)
treee8644c6e2b7ce1c509d47b00b40bc5d41ef2f63f /base/base_paths.h
parent29d334a2a5e8b66a83c161f54f83f3cdf5a31240 (diff)
downloadchromium_src-5d1937bb5d9137cbaa1c947c383c3742179062a9.zip
chromium_src-5d1937bb5d9137cbaa1c947c383c3742179062a9.tar.gz
chromium_src-5d1937bb5d9137cbaa1c947c383c3742179062a9.tar.bz2
posix: refactor duplicated path-handling code
We had the same code in three headers, and an "if FREEBSD" in a _linux.cc file. Review URL: http://codereview.chromium.org/414063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32722 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/base_paths.h')
-rw-r--r--base/base_paths.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/base/base_paths.h b/base/base_paths.h
index 86c7a4b..8ec19e5 100644
--- a/base/base_paths.h
+++ b/base/base_paths.h
@@ -13,8 +13,6 @@
#include "base/base_paths_win.h"
#elif defined(OS_MACOSX)
#include "base/base_paths_mac.h"
-#elif defined(OS_LINUX) || defined(OS_FREEBSD)
-#include "base/base_paths_linux.h"
#endif
#include "base/path_service.h"
@@ -27,6 +25,14 @@ enum {
DIR_EXE, // directory containing FILE_EXE
DIR_MODULE, // directory containing FILE_MODULE
DIR_TEMP, // temporary directory
+ 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 shared object, for example).
+ 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.
+
PATH_END
};