OLD | NEW |
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. |
| 18 // Note that this cannot be wrapped in a preprocessor define since |
| 19 // CF and Google Chrome want to share the same binaries. |
| 20 bool GetChromeFrameUserDataDirectory(FilePath* result); |
| 21 |
17 #if defined(OS_LINUX) | 22 #if defined(OS_LINUX) |
18 // Get the path to the user's cache directory. | 23 // Get the path to the user's cache directory. |
19 bool GetUserCacheDirectory(FilePath* result); | 24 bool GetUserCacheDirectory(FilePath* result); |
20 #endif | 25 #endif |
21 | 26 |
22 // Get the path to the user's documents directory. | 27 // Get the path to the user's documents directory. |
23 bool GetUserDocumentsDirectory(FilePath* result); | 28 bool GetUserDocumentsDirectory(FilePath* result); |
24 | 29 |
25 // Get the path to the user's downloads directory. | 30 // Get the path to the user's downloads directory. |
26 bool GetUserDownloadsDirectory(FilePath* result); | 31 bool GetUserDownloadsDirectory(FilePath* result); |
(...skipping 12 matching lines...) Expand all Loading... |
39 // framework bundle is located within the versioned directory at a specific | 44 // framework bundle is located within the versioned directory at a specific |
40 // path. The only components in the versioned directory not included in the | 45 // path. The only components in the versioned directory not included in the |
41 // framework are things that also depend on the framework, such as the helper | 46 // framework are things that also depend on the framework, such as the helper |
42 // app bundle. | 47 // app bundle. |
43 FilePath GetFrameworkBundlePath(); | 48 FilePath GetFrameworkBundlePath(); |
44 #endif // OS_MACOSX | 49 #endif // OS_MACOSX |
45 | 50 |
46 } // namespace chrome | 51 } // namespace chrome |
47 | 52 |
48 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ | 53 #endif // CHROME_COMMON_CHROME_PATHS_INTERNAL_H_ |
OLD | NEW |