| 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 ExtensionService; | 21 class ExtensionService; |
| 22 class ExtensionSpecialStoragePolicy; | 22 class ExtensionSpecialStoragePolicy; |
| 23 class FaviconService; | 23 class FaviconService; |
| 24 class GAIAInfoUpdateService; | |
| 25 class HostContentSettingsMap; | 24 class HostContentSettingsMap; |
| 26 class PasswordStore; | 25 class PasswordStore; |
| 27 class PrefServiceSyncable; | 26 class PrefServiceSyncable; |
| 28 class PromoCounter; | 27 class PromoCounter; |
| 29 class ProtocolHandlerRegistry; | 28 class ProtocolHandlerRegistry; |
| 30 class TestingProfile; | 29 class TestingProfile; |
| 31 class WebDataService; | 30 class WebDataService; |
| 32 | 31 |
| 33 namespace android { | 32 namespace android { |
| 34 class TabContentsProvider; | 33 class TabContentsProvider; |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 // DEPRECATED. Instead, use ExtensionSystem::extension_service(). | 197 // DEPRECATED. Instead, use ExtensionSystem::extension_service(). |
| 199 // Retrieves a pointer to the ExtensionService associated with this | 198 // Retrieves a pointer to the ExtensionService associated with this |
| 200 // profile. The ExtensionService is created at startup. | 199 // profile. The ExtensionService is created at startup. |
| 201 // TODO(yoz): remove this accessor (bug 104095). | 200 // TODO(yoz): remove this accessor (bug 104095). |
| 202 virtual ExtensionService* GetExtensionService() = 0; | 201 virtual ExtensionService* GetExtensionService() = 0; |
| 203 | 202 |
| 204 // Accessor. The instance is created upon first access. | 203 // Accessor. The instance is created upon first access. |
| 205 virtual ExtensionSpecialStoragePolicy* | 204 virtual ExtensionSpecialStoragePolicy* |
| 206 GetExtensionSpecialStoragePolicy() = 0; | 205 GetExtensionSpecialStoragePolicy() = 0; |
| 207 | 206 |
| 208 // Accessor. The instance is created upon first access. | |
| 209 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() = 0; | |
| 210 | |
| 211 // Returns the ManagedModePolicyProvider for this profile, if it exists. | 207 // Returns the ManagedModePolicyProvider for this profile, if it exists. |
| 212 virtual policy::ManagedModePolicyProvider* GetManagedModePolicyProvider() = 0; | 208 virtual policy::ManagedModePolicyProvider* GetManagedModePolicyProvider() = 0; |
| 213 | 209 |
| 214 // Returns the PolicyService that provides policies for this profile. | 210 // Returns the PolicyService that provides policies for this profile. |
| 215 virtual policy::PolicyService* GetPolicyService() = 0; | 211 virtual policy::PolicyService* GetPolicyService() = 0; |
| 216 | 212 |
| 217 // Retrieves a pointer to the PrefServiceSyncable that manages the preferences | 213 // Retrieves a pointer to the PrefServiceSyncable that manages the preferences |
| 218 // for this user profile. | 214 // for this user profile. |
| 219 // TODO(joi): Make this and the below return just a PrefService. | 215 // TODO(joi): Make this and the below return just a PrefService. |
| 220 virtual PrefServiceSyncable* GetPrefs() = 0; | 216 virtual PrefServiceSyncable* GetPrefs() = 0; |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 struct hash<Profile*> { | 398 struct hash<Profile*> { |
| 403 std::size_t operator()(Profile* const& p) const { | 399 std::size_t operator()(Profile* const& p) const { |
| 404 return reinterpret_cast<std::size_t>(p); | 400 return reinterpret_cast<std::size_t>(p); |
| 405 } | 401 } |
| 406 }; | 402 }; |
| 407 | 403 |
| 408 } // namespace BASE_HASH_NAMESPACE | 404 } // namespace BASE_HASH_NAMESPACE |
| 409 #endif | 405 #endif |
| 410 | 406 |
| 411 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 407 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |