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

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

Issue 2709783002: Add DIR_ROAMING_USER_DATA to PathService. (Closed)
Patch Set: Address comment. Created 3 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
« no previous file with comments | « chrome/common/chrome_paths.cc ('k') | chrome/common/chrome_paths_win.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 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 <string> 8 #include <string>
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 11
12 #if defined(OS_MACOSX) 12 #if defined(OS_MACOSX)
13 #if defined(__OBJC__) 13 #if defined(__OBJC__)
14 @class NSBundle; 14 @class NSBundle;
15 #else 15 #else
16 class NSBundle; 16 class NSBundle;
17 #endif 17 #endif
18 #endif 18 #endif
19 19
20 namespace base { 20 namespace base {
21 class FilePath; 21 class FilePath;
22 } 22 }
23 23
24 namespace chrome { 24 namespace chrome {
25 25
26 // Get the path to the user's data directory, regardless of whether 26 // Get the path to the user's data directory, regardless of whether
27 // DIR_USER_DATA has been overridden by a command-line option. 27 // DIR_USER_DATA has been overridden by a command-line option.
28 bool GetDefaultUserDataDirectory(base::FilePath* result); 28 bool GetDefaultUserDataDirectory(base::FilePath* result);
29 29
30 #if defined(OS_WIN)
31 // Get the path to the roaming user's data directory, regardless of whether
32 // DIR_ROAMING_USER_DATA has been overridden by a command-line option.
33 bool GetDefaultRoamingUserDataDirectory(base::FilePath* result);
34 #endif
35
30 // Get the path to the user's cache directory. This is normally the 36 // Get the path to the user's cache directory. This is normally the
31 // same as the profile directory, but on Linux it can also be 37 // same as the profile directory, but on Linux it can also be
32 // $XDG_CACHE_HOME and on Mac it can be under ~/Library/Caches. 38 // $XDG_CACHE_HOME and on Mac it can be under ~/Library/Caches.
33 // Note that the Chrome cache directories are actually subdirectories 39 // Note that the Chrome cache directories are actually subdirectories
34 // of this directory, with names like "Cache" and "Media Cache". 40 // of this directory, with names like "Cache" and "Media Cache".
35 // This will always fill in |result| with a directory, sometimes 41 // This will always fill in |result| with a directory, sometimes
36 // just |profile_dir|. 42 // just |profile_dir|.
37 void GetUserCacheDirectory(const base::FilePath& profile_dir, base::FilePath* re sult); 43 void GetUserCacheDirectory(const base::FilePath& profile_dir, base::FilePath* re sult);
38 44
39 // Get the path to the user's documents directory. 45 // Get the path to the user's documents directory.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 bool GetUserDataDirectoryForBrowserBundle(NSBundle* bundle, 102 bool GetUserDataDirectoryForBrowserBundle(NSBundle* bundle,
97 base::FilePath* result); 103 base::FilePath* result);
98 104
99 #endif // OS_MACOSX 105 #endif // OS_MACOSX
100 // Checks if the |process_type| has the rights to access the profile. 106 // Checks if the |process_type| has the rights to access the profile.
101 bool ProcessNeedsProfileDir(const std::string& process_type); 107 bool ProcessNeedsProfileDir(const std::string& process_type);
102 108
103 } // namespace chrome 109 } // namespace chrome
104 110
105 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ 111 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_paths.cc ('k') | chrome/common/chrome_paths_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698