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 // This class gathers state related to a single user profile. | 5 // This class gathers state related to a single user profile. |
6 | 6 |
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ | 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ |
8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ | 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/hash_tables.h" | 13 #include "base/hash_tables.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "chrome/browser/net/pref_proxy_config_tracker.h" | 15 #include "chrome/browser/net/pref_proxy_config_tracker.h" |
16 #include "chrome/browser/ui/webui/chrome_url_data_manager_factory.h" | 16 #include "chrome/browser/ui/webui/chrome_url_data_manager_factory.h" |
17 #include "content/public/browser/browser_context.h" | 17 #include "content/public/browser/browser_context.h" |
18 | 18 |
19 class ChromeAppCacheService; | 19 class ChromeAppCacheService; |
20 class ChromeURLDataManager; | 20 class ChromeURLDataManager; |
21 class ExtensionProcessManager; | |
22 class ExtensionService; | 21 class ExtensionService; |
23 class ExtensionSpecialStoragePolicy; | 22 class ExtensionSpecialStoragePolicy; |
24 class FaviconService; | 23 class FaviconService; |
25 class GAIAInfoUpdateService; | 24 class GAIAInfoUpdateService; |
26 class HostContentSettingsMap; | 25 class HostContentSettingsMap; |
27 class PasswordStore; | 26 class PasswordStore; |
28 class PrefService; | 27 class PrefService; |
29 class PromoCounter; | 28 class PromoCounter; |
30 class ProtocolHandlerRegistry; | 29 class ProtocolHandlerRegistry; |
31 class TestingProfile; | 30 class TestingProfile; |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 // TODO(yoz): remove this accessor (bug 104095). | 204 // TODO(yoz): remove this accessor (bug 104095). |
206 virtual ExtensionService* GetExtensionService() = 0; | 205 virtual ExtensionService* GetExtensionService() = 0; |
207 | 206 |
208 // DEPRECATED. Instead, use ExtensionSystem::user_script_master(). | 207 // DEPRECATED. Instead, use ExtensionSystem::user_script_master(). |
209 // Retrieves a pointer to the extensions::UserScriptMaster associated with | 208 // Retrieves a pointer to the extensions::UserScriptMaster associated with |
210 // this profile. The extensions::UserScriptMaster is lazily created the first | 209 // this profile. The extensions::UserScriptMaster is lazily created the first |
211 // time that this method is called. | 210 // time that this method is called. |
212 // TODO(yoz): remove this accessor (bug 104095). | 211 // TODO(yoz): remove this accessor (bug 104095). |
213 virtual extensions::UserScriptMaster* GetUserScriptMaster() = 0; | 212 virtual extensions::UserScriptMaster* GetUserScriptMaster() = 0; |
214 | 213 |
215 // DEPRECATED. Instead, use ExtensionSystem::process_manager(). | |
216 // Retrieves a pointer to the ExtensionProcessManager associated with this | |
217 // profile. The instance is created at startup. | |
218 // TODO(yoz): remove this accessor (bug 104095). | |
219 virtual ExtensionProcessManager* GetExtensionProcessManager() = 0; | |
220 | |
221 // DEPRECATED. Instead, use ExtensionSystem::event_router(). | 214 // DEPRECATED. Instead, use ExtensionSystem::event_router(). |
222 // Accessor. The instance is created at startup. | 215 // Accessor. The instance is created at startup. |
223 // TODO(yoz): remove this accessor (bug 104095). | 216 // TODO(yoz): remove this accessor (bug 104095). |
224 virtual extensions::EventRouter* GetExtensionEventRouter() = 0; | 217 virtual extensions::EventRouter* GetExtensionEventRouter() = 0; |
225 | 218 |
226 // Accessor. The instance is created upon first access. | 219 // Accessor. The instance is created upon first access. |
227 virtual ExtensionSpecialStoragePolicy* | 220 virtual ExtensionSpecialStoragePolicy* |
228 GetExtensionSpecialStoragePolicy() = 0; | 221 GetExtensionSpecialStoragePolicy() = 0; |
229 | 222 |
230 // Accessor. The instance is created upon first access. | 223 // Accessor. The instance is created upon first access. |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 struct hash<Profile*> { | 415 struct hash<Profile*> { |
423 std::size_t operator()(Profile* const& p) const { | 416 std::size_t operator()(Profile* const& p) const { |
424 return reinterpret_cast<std::size_t>(p); | 417 return reinterpret_cast<std::size_t>(p); |
425 } | 418 } |
426 }; | 419 }; |
427 | 420 |
428 } // namespace BASE_HASH_NAMESPACE | 421 } // namespace BASE_HASH_NAMESPACE |
429 #endif | 422 #endif |
430 | 423 |
431 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 424 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |