Home | History | Annotate | Download | only in base

Lines Matching defs:base

5 // Defines base::PathProviderPosix, default path provider on POSIX OSes that
12 #include "base/base_paths.h"
13 #include "base/environment.h"
14 #include "base/file_util.h"
15 #include "base/files/file_path.h"
16 #include "base/logging.h"
17 #include "base/memory/scoped_ptr.h"
18 #include "base/nix/xdg_util.h"
19 #include "base/path_service.h"
20 #include "base/process/process_metrics.h"
30 namespace base {
35 case base::FILE_EXE:
36 case base::FILE_MODULE: { // TODO(evanm): is this correct?
76 case base::DIR_SOURCE_ROOT: {
79 scoped_ptr<base::Environment> env(base::Environment::Create());
83 if (base::PathExists(path)) {
93 if (PathService::Get(base::DIR_EXE, &path)) {
102 case base::DIR_USER_DESKTOP:
103 *result = base::nix::GetXDGUserDirectory("DESKTOP", "Desktop");
105 case base::DIR_CACHE: {
106 scoped_ptr<base::Environment> env(base::Environment::Create());
107 FilePath cache_dir(base::nix::GetXDGDirectory(env.get(), "XDG_CACHE_HOME",
112 case base::DIR_HOME:
119 } // namespace base