| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // binary data (e.g., html files and images | 98 // binary data (e.g., html files and images |
| 99 // used by internal pages). | 99 // used by internal pages). |
| 100 DIR_RESOURCES_EXTENSION, // Full path to extension resources. | 100 DIR_RESOURCES_EXTENSION, // Full path to extension resources. |
| 101 #if defined(OS_CHROMEOS) | 101 #if defined(OS_CHROMEOS) |
| 102 DIR_CHROMEOS_WALLPAPERS, // Directory where downloaded chromeos | 102 DIR_CHROMEOS_WALLPAPERS, // Directory where downloaded chromeos |
| 103 // wallpapers reside. | 103 // wallpapers reside. |
| 104 DIR_CHROMEOS_WALLPAPER_THUMBNAILS, // Directory where downloaded chromeos | 104 DIR_CHROMEOS_WALLPAPER_THUMBNAILS, // Directory where downloaded chromeos |
| 105 // wallpaper thumbnails reside. | 105 // wallpaper thumbnails reside. |
| 106 DIR_CHROMEOS_CUSTOM_WALLPAPERS, // Directory where custom wallpapers | 106 DIR_CHROMEOS_CUSTOM_WALLPAPERS, // Directory where custom wallpapers |
| 107 // reside. | 107 // reside. |
| 108 DIR_CHROMEOS_PPD_CACHE, // Directory where printing drivers are |
| 109 // cached. |
| 108 #endif | 110 #endif |
| 109 DIR_SUPERVISED_USERS_DEFAULT_APPS, // Directory where installer places .crx | 111 DIR_SUPERVISED_USERS_DEFAULT_APPS, // Directory where installer places .crx |
| 110 // files to be installed when managed user | 112 // files to be installed when managed user |
| 111 // session starts. | 113 // session starts. |
| 112 DIR_SUPERVISED_USER_INSTALLED_WHITELISTS, // Directory where sanitized | 114 DIR_SUPERVISED_USER_INSTALLED_WHITELISTS, // Directory where sanitized |
| 113 // supervised user whitelists are | 115 // supervised user whitelists are |
| 114 // installed. | 116 // installed. |
| 115 #if defined(OS_LINUX) || defined(OS_MACOSX) | 117 #if defined(OS_LINUX) || defined(OS_MACOSX) |
| 116 DIR_NATIVE_MESSAGING, // System directory where native messaging host | 118 DIR_NATIVE_MESSAGING, // System directory where native messaging host |
| 117 // manifest files are stored. | 119 // manifest files are stored. |
| 118 DIR_USER_NATIVE_MESSAGING, // Directory with Native Messaging Hosts | 120 DIR_USER_NATIVE_MESSAGING, // Directory with Native Messaging Hosts |
| 119 // installed per-user. | 121 // installed per-user. |
| 120 #endif | 122 #endif |
| 121 #if !defined(OS_ANDROID) | 123 #if !defined(OS_ANDROID) |
| 122 DIR_GLOBAL_GCM_STORE, // Directory where the global GCM instance | 124 DIR_GLOBAL_GCM_STORE, // Directory where the global GCM instance |
| 123 // stores its data. | 125 // stores its data. |
| 124 #endif | 126 #endif |
| 125 | 127 |
| 126 // Valid only in development environment; TODO(darin): move these | 128 // Valid only in development environment; TODO(darin): move these |
| 127 DIR_GEN_TEST_DATA, // Directory where generated test data resides. | 129 DIR_GEN_TEST_DATA, // Directory where generated test data resides. |
| 128 DIR_TEST_DATA, // Directory where unit test data resides. | 130 DIR_TEST_DATA, // Directory where unit test data resides. |
| 129 DIR_TEST_TOOLS, // Directory where unit test tools reside. | 131 DIR_TEST_TOOLS, // Directory where unit test tools reside. |
| 130 #if defined(OS_LINUX) | 132 #if defined(OS_LINUX) |
| 131 FILE_COMPONENT_FLASH_HINT, // A file in a known location that points to | 133 FILE_COMPONENT_FLASH_HINT, // A file in a known location that points to |
| 132 // the component updated flash plugin. | 134 // the component updated flash plugin. |
| 133 #endif // defined(OS_LINUX) | 135 #endif // defined(OS_LINUX) |
| 134 #if defined(OS_CHROMEOS) | 136 #if defined(OS_CHROMEOS) |
| 135 FILE_CHROME_OS_COMPONENT_FLASH, // The location of component updated Flash on | 137 FILE_CHROME_OS_COMPONENT_FLASH, // The location of component updated Flash on |
| 136 // Chrome OS. | 138 // Chrome OS. |
| 137 #endif // defined(OS_CHROMEOS) | 139 #endif // defined(OS_CHROMEOS) |
| 138 PATH_END | 140 PATH_END |
| 139 }; | 141 }; |
| 140 | 142 |
| 141 // Call once to register the provider for the path keys defined above. | 143 // Call once to register the provider for the path keys defined above. |
| 142 void RegisterPathProvider(); | 144 void RegisterPathProvider(); |
| 143 | 145 |
| 144 // Get or set the invalid user data dir that was originally specified. | 146 // Get or set the invalid user data dir that was originally specified. |
| 145 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir); | 147 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir); |
| 146 const base::FilePath& GetInvalidSpecifiedUserDataDir(); | 148 const base::FilePath& GetInvalidSpecifiedUserDataDir(); |
| 147 | 149 |
| 148 } // namespace chrome | 150 } // namespace chrome |
| 149 | 151 |
| 150 #endif // CHROME_COMMON_CHROME_PATHS_H__ | 152 #endif // CHROME_COMMON_CHROME_PATHS_H__ |
| OLD | NEW |