| 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 ExtensionService; | 21 class ExtensionService; |
| 21 class ExtensionSpecialStoragePolicy; | 22 class ExtensionSpecialStoragePolicy; |
| 22 class FaviconService; | 23 class FaviconService; |
| 23 class HostContentSettingsMap; | 24 class HostContentSettingsMap; |
| 24 class PrefProxyConfigTracker; | 25 class PrefProxyConfigTracker; |
| 25 class PrefService; | 26 class PrefService; |
| 26 class PromoCounter; | 27 class PromoCounter; |
| 27 class ProtocolHandlerRegistry; | 28 class ProtocolHandlerRegistry; |
| 28 class TestingProfile; | 29 class TestingProfile; |
| 29 class WebDataService; | 30 class WebDataService; |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 virtual void InitChromeOSPreferences() = 0; | 306 virtual void InitChromeOSPreferences() = 0; |
| 306 #endif // defined(OS_CHROMEOS) | 307 #endif // defined(OS_CHROMEOS) |
| 307 | 308 |
| 308 // Returns the helper object that provides the proxy configuration service | 309 // Returns the helper object that provides the proxy configuration service |
| 309 // access to the the proxy configuration possibly defined by preferences. | 310 // access to the the proxy configuration possibly defined by preferences. |
| 310 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; | 311 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; |
| 311 | 312 |
| 312 // Returns the Predictor object used for dns prefetch. | 313 // Returns the Predictor object used for dns prefetch. |
| 313 virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0; | 314 virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0; |
| 314 | 315 |
| 316 // Returns the DevToolsNetworkController for this profile. |
| 317 virtual DevToolsNetworkController* GetDevToolsNetworkController() = 0; |
| 318 |
| 315 // Deletes all network related data since |time|. It deletes transport | 319 // Deletes all network related data since |time|. It deletes transport |
| 316 // security state since |time| and it also deletes HttpServerProperties data. | 320 // security state since |time| and it also deletes HttpServerProperties data. |
| 317 // Works asynchronously, however if the |completion| callback is non-null, it | 321 // Works asynchronously, however if the |completion| callback is non-null, it |
| 318 // will be posted on the UI thread once the removal process completes. | 322 // will be posted on the UI thread once the removal process completes. |
| 319 // Be aware that theoretically it is possible that |completion| will be | 323 // Be aware that theoretically it is possible that |completion| will be |
| 320 // invoked after the Profile instance has been destroyed. | 324 // invoked after the Profile instance has been destroyed. |
| 321 virtual void ClearNetworkingHistorySince(base::Time time, | 325 virtual void ClearNetworkingHistorySince(base::Time time, |
| 322 const base::Closure& completion) = 0; | 326 const base::Closure& completion) = 0; |
| 323 | 327 |
| 324 // Clears browsing data stored in the Domain Reliability Monitor. (See | 328 // Clears browsing data stored in the Domain Reliability Monitor. (See |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 struct hash<Profile*> { | 424 struct hash<Profile*> { |
| 421 std::size_t operator()(Profile* const& p) const { | 425 std::size_t operator()(Profile* const& p) const { |
| 422 return reinterpret_cast<std::size_t>(p); | 426 return reinterpret_cast<std::size_t>(p); |
| 423 } | 427 } |
| 424 }; | 428 }; |
| 425 | 429 |
| 426 } // namespace BASE_HASH_NAMESPACE | 430 } // namespace BASE_HASH_NAMESPACE |
| 427 #endif | 431 #endif |
| 428 | 432 |
| 429 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 433 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |