Chromium Code Reviews| 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/containers/hash_tables.h" | 13 #include "base/containers/hash_tables.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "components/domain_reliability/clear_mode.h" | 15 #include "components/domain_reliability/clear_mode.h" |
| 16 #include "content/public/browser/browser_context.h" | 16 #include "content/public/browser/browser_context.h" |
| 17 #include "content/public/browser/content_browser_client.h" | 17 #include "content/public/browser/content_browser_client.h" |
| 18 | 18 |
| 19 class ChromeAppCacheService; | 19 class ChromeAppCacheService; |
| 20 class DevToolsNetworkController; | 20 class DevToolsNetworkController; |
| 21 class ExtensionService; | |
| 22 class ExtensionSpecialStoragePolicy; | 21 class ExtensionSpecialStoragePolicy; |
| 23 class FaviconService; | 22 class FaviconService; |
| 24 class HostContentSettingsMap; | 23 class HostContentSettingsMap; |
| 25 class PrefProxyConfigTracker; | 24 class PrefProxyConfigTracker; |
| 26 class PrefService; | 25 class PrefService; |
| 27 class PromoCounter; | 26 class PromoCounter; |
| 28 class ProtocolHandlerRegistry; | 27 class ProtocolHandlerRegistry; |
| 29 class TestingProfile; | 28 class TestingProfile; |
| 30 class WebDataService; | 29 class WebDataService; |
| 31 | 30 |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 205 // Returns whether the profile is supervised (see SupervisedUserService). | 204 // Returns whether the profile is supervised (see SupervisedUserService). |
| 206 virtual bool IsSupervised() = 0; | 205 virtual bool IsSupervised() = 0; |
| 207 | 206 |
| 208 // Returns a pointer to the TopSites (thumbnail manager) instance | 207 // Returns a pointer to the TopSites (thumbnail manager) instance |
| 209 // for this profile. | 208 // for this profile. |
| 210 virtual history::TopSites* GetTopSites() = 0; | 209 virtual history::TopSites* GetTopSites() = 0; |
| 211 | 210 |
| 212 // Variant of GetTopSites that doesn't force creation. | 211 // Variant of GetTopSites that doesn't force creation. |
| 213 virtual history::TopSites* GetTopSitesWithoutCreating() = 0; | 212 virtual history::TopSites* GetTopSitesWithoutCreating() = 0; |
| 214 | 213 |
| 215 // DEPRECATED. Instead, use ExtensionSystem::extension_service(). | |
| 216 // Retrieves a pointer to the ExtensionService associated with this | |
| 217 // profile. The ExtensionService is created at startup. | |
| 218 // TODO(yoz): remove this accessor (bug 104095). | |
| 219 virtual ExtensionService* GetExtensionService() = 0; | |
|
Devlin
2014/06/25 19:38:48
Woohoo!!!!! :D
| |
| 220 | |
| 221 // Accessor. The instance is created upon first access. | 214 // Accessor. The instance is created upon first access. |
| 222 virtual ExtensionSpecialStoragePolicy* | 215 virtual ExtensionSpecialStoragePolicy* |
| 223 GetExtensionSpecialStoragePolicy() = 0; | 216 GetExtensionSpecialStoragePolicy() = 0; |
| 224 | 217 |
| 225 // Retrieves a pointer to the PrefService that manages the | 218 // Retrieves a pointer to the PrefService that manages the |
| 226 // preferences for this user profile. | 219 // preferences for this user profile. |
| 227 virtual PrefService* GetPrefs() = 0; | 220 virtual PrefService* GetPrefs() = 0; |
| 228 | 221 |
| 229 // Retrieves a pointer to the PrefService that manages the preferences | 222 // Retrieves a pointer to the PrefService that manages the preferences |
| 230 // for OffTheRecord Profiles. This PrefService is lazily created the first | 223 // for OffTheRecord Profiles. This PrefService is lazily created the first |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 418 struct hash<Profile*> { | 411 struct hash<Profile*> { |
| 419 std::size_t operator()(Profile* const& p) const { | 412 std::size_t operator()(Profile* const& p) const { |
| 420 return reinterpret_cast<std::size_t>(p); | 413 return reinterpret_cast<std::size_t>(p); |
| 421 } | 414 } |
| 422 }; | 415 }; |
| 423 | 416 |
| 424 } // namespace BASE_HASH_NAMESPACE | 417 } // namespace BASE_HASH_NAMESPACE |
| 425 #endif | 418 #endif |
| 426 | 419 |
| 427 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 420 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |