OLD | NEW |
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_H__ | 5 #ifndef CHROME_COMMON_CHROME_PATHS_H__ |
6 #define CHROME_COMMON_CHROME_PATHS_H__ | 6 #define CHROME_COMMON_CHROME_PATHS_H__ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 namespace base { | 10 namespace base { |
(...skipping 28 matching lines...) Expand all Loading... |
39 // "My Documents/Downloads", (Windows) or | 39 // "My Documents/Downloads", (Windows) or |
40 // "Downloads". (Linux) | 40 // "Downloads". (Linux) |
41 DIR_DEFAULT_DOWNLOADS, // Directory for a user's downloads. | 41 DIR_DEFAULT_DOWNLOADS, // Directory for a user's downloads. |
42 DIR_INTERNAL_PLUGINS, // Directory where internal plugins reside. | 42 DIR_INTERNAL_PLUGINS, // Directory where internal plugins reside. |
43 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 43 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
44 DIR_POLICY_FILES, // Directory for system-wide read-only | 44 DIR_POLICY_FILES, // Directory for system-wide read-only |
45 // policy files that allow sys-admins | 45 // policy files that allow sys-admins |
46 // to set policies for chrome. This directory | 46 // to set policies for chrome. This directory |
47 // contains subdirectories. | 47 // contains subdirectories. |
48 #endif | 48 #endif |
49 #if defined(OS_MACOSX) | |
50 DIR_USER_APPLICATIONS, // ~/Applications | |
51 DIR_USER_LIBRARY, // ~/Library | |
52 #endif | |
53 #if defined(OS_CHROMEOS) || (defined(OS_LINUX) && defined(CHROMIUM_BUILD)) || \ | 49 #if defined(OS_CHROMEOS) || (defined(OS_LINUX) && defined(CHROMIUM_BUILD)) || \ |
54 defined(OS_MACOSX) | 50 defined(OS_MACOSX) |
55 DIR_USER_EXTERNAL_EXTENSIONS, // Directory for per-user external extensions | 51 DIR_USER_EXTERNAL_EXTENSIONS, // Directory for per-user external extensions |
56 // on Chrome Mac and Chromium Linux. | 52 // on Chrome Mac and Chromium Linux. |
57 // On Chrome OS, this path is used for OEM | 53 // On Chrome OS, this path is used for OEM |
58 // customization. Getting this path does not | 54 // customization. Getting this path does not |
59 // create it. | 55 // create it. |
60 #endif | 56 #endif |
61 | 57 |
62 #if defined(OS_LINUX) | 58 #if defined(OS_LINUX) |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // Call once to register the provider for the path keys defined above. | 139 // Call once to register the provider for the path keys defined above. |
144 void RegisterPathProvider(); | 140 void RegisterPathProvider(); |
145 | 141 |
146 // Get or set the invalid user data dir that was originally specified. | 142 // Get or set the invalid user data dir that was originally specified. |
147 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir); | 143 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir); |
148 const base::FilePath& GetInvalidSpecifiedUserDataDir(); | 144 const base::FilePath& GetInvalidSpecifiedUserDataDir(); |
149 | 145 |
150 } // namespace chrome | 146 } // namespace chrome |
151 | 147 |
152 #endif // CHROME_COMMON_CHROME_PATHS_H__ | 148 #endif // CHROME_COMMON_CHROME_PATHS_H__ |
OLD | NEW |