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

Side by Side Diff: chrome/common/chrome_paths_internal.h

Issue 449048: Move some XDG code from chrome to base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix linux base_unittest Created 11 years 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 | « chrome/common/chrome_paths.cc ('k') | chrome/common/chrome_paths_linux.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ 5 #ifndef CHROME_COMMON_CHROME_PATHS_INTERNAL_H_
6 #define CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ 6 #define CHROME_COMMON_CHROME_PATHS_INTERNAL_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 10
11 namespace chrome { 11 namespace chrome {
12 12
13 // Get the path to the user's data directory, regardless of whether 13 // Get the path to the user's data directory, regardless of whether
14 // DIR_USER_DATA has been overridden by a command-line option. 14 // DIR_USER_DATA has been overridden by a command-line option.
15 bool GetDefaultUserDataDirectory(FilePath* result); 15 bool GetDefaultUserDataDirectory(FilePath* result);
16 16
17 // This returns the base directory in which Chrome Frame stores user profiles. 17 // This returns the base directory in which Chrome Frame stores user profiles.
18 // Note that this cannot be wrapped in a preprocessor define since 18 // Note that this cannot be wrapped in a preprocessor define since
19 // CF and Google Chrome want to share the same binaries. 19 // CF and Google Chrome want to share the same binaries.
20 bool GetChromeFrameUserDataDirectory(FilePath* result); 20 bool GetChromeFrameUserDataDirectory(FilePath* result);
21 21
22 #if defined(OS_LINUX)
23 // Get the path to the user's cache directory.
24 bool GetUserCacheDirectory(FilePath* result);
25 #endif
26
27 // Get the path to the user's documents directory. 22 // Get the path to the user's documents directory.
28 bool GetUserDocumentsDirectory(FilePath* result); 23 bool GetUserDocumentsDirectory(FilePath* result);
29 24
30 // Get the path to the user's downloads directory. 25 // Get the path to the user's downloads directory.
31 bool GetUserDownloadsDirectory(FilePath* result); 26 bool GetUserDownloadsDirectory(FilePath* result);
32 27
33 // The path to the user's desktop. 28 // The path to the user's desktop.
34 bool GetUserDesktop(FilePath* result); 29 bool GetUserDesktop(FilePath* result);
35 30
36 #if defined(OS_MACOSX) 31 #if defined(OS_MACOSX)
37 // The "versioned directory" is a directory in the browser .app bundle. It 32 // The "versioned directory" is a directory in the browser .app bundle. It
38 // contains the bulk of the application, except for the things that the system 33 // contains the bulk of the application, except for the things that the system
39 // requires be located at spepcific locations. The versioned directory is 34 // requires be located at spepcific locations. The versioned directory is
40 // in the .app at Contents/Versions/w.x.y.z. 35 // in the .app at Contents/Versions/w.x.y.z.
41 FilePath GetVersionedDirectory(); 36 FilePath GetVersionedDirectory();
42 37
43 // Most of the application is further contained within the framework. The 38 // Most of the application is further contained within the framework. The
44 // framework bundle is located within the versioned directory at a specific 39 // framework bundle is located within the versioned directory at a specific
45 // path. The only components in the versioned directory not included in the 40 // path. The only components in the versioned directory not included in the
46 // framework are things that also depend on the framework, such as the helper 41 // framework are things that also depend on the framework, such as the helper
47 // app bundle. 42 // app bundle.
48 FilePath GetFrameworkBundlePath(); 43 FilePath GetFrameworkBundlePath();
49 #endif // OS_MACOSX 44 #endif // OS_MACOSX
50 45
51 } // namespace chrome 46 } // namespace chrome
52 47
53 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ 48 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_paths.cc ('k') | chrome/common/chrome_paths_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698