| 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 "content/public/browser/browser_context.h" | 16 #include "content/public/browser/browser_context.h" |
| 16 #include "content/public/browser/content_browser_client.h" | 17 #include "content/public/browser/content_browser_client.h" |
| 17 #include "net/url_request/url_request_job_factory.h" | 18 #include "net/url_request/url_request_job_factory.h" |
| 18 | 19 |
| 19 class ChromeAppCacheService; | 20 class ChromeAppCacheService; |
| 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; |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 | 315 |
| 315 // Deletes all network related data since |time|. It deletes transport | 316 // Deletes all network related data since |time|. It deletes transport |
| 316 // security state since |time| and it also deletes HttpServerProperties data. | 317 // security state since |time| and it also deletes HttpServerProperties data. |
| 317 // Works asynchronously, however if the |completion| callback is non-null, it | 318 // Works asynchronously, however if the |completion| callback is non-null, it |
| 318 // will be posted on the UI thread once the removal process completes. | 319 // will be posted on the UI thread once the removal process completes. |
| 319 // Be aware that theoretically it is possible that |completion| will be | 320 // Be aware that theoretically it is possible that |completion| will be |
| 320 // invoked after the Profile instance has been destroyed. | 321 // invoked after the Profile instance has been destroyed. |
| 321 virtual void ClearNetworkingHistorySince(base::Time time, | 322 virtual void ClearNetworkingHistorySince(base::Time time, |
| 322 const base::Closure& completion) = 0; | 323 const base::Closure& completion) = 0; |
| 323 | 324 |
| 325 // Clears browsing data stored in the Domain Reliability Monitor. (See |
| 326 // profile_impl_io_data.h for details.) |
| 327 virtual void ClearDomainReliabilityMonitor( |
| 328 domain_reliability::DomainReliabilityClearMode mode, |
| 329 const base::Closure& competion) = 0; |
| 330 |
| 324 // Returns the home page for this profile. | 331 // Returns the home page for this profile. |
| 325 virtual GURL GetHomePage() = 0; | 332 virtual GURL GetHomePage() = 0; |
| 326 | 333 |
| 327 // Returns whether or not the profile was created by a version of Chrome | 334 // Returns whether or not the profile was created by a version of Chrome |
| 328 // more recent (or equal to) the one specified. | 335 // more recent (or equal to) the one specified. |
| 329 virtual bool WasCreatedByVersionOrLater(const std::string& version) = 0; | 336 virtual bool WasCreatedByVersionOrLater(const std::string& version) = 0; |
| 330 | 337 |
| 331 std::string GetDebugName(); | 338 std::string GetDebugName(); |
| 332 | 339 |
| 333 // Returns whether it is a guest session. | 340 // Returns whether it is a guest session. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 struct hash<Profile*> { | 421 struct hash<Profile*> { |
| 415 std::size_t operator()(Profile* const& p) const { | 422 std::size_t operator()(Profile* const& p) const { |
| 416 return reinterpret_cast<std::size_t>(p); | 423 return reinterpret_cast<std::size_t>(p); |
| 417 } | 424 } |
| 418 }; | 425 }; |
| 419 | 426 |
| 420 } // namespace BASE_HASH_NAMESPACE | 427 } // namespace BASE_HASH_NAMESPACE |
| 421 #endif | 428 #endif |
| 422 | 429 |
| 423 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 430 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |