| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 virtual void InitChromeOSPreferences() = 0; | 475 virtual void InitChromeOSPreferences() = 0; |
| 476 #endif // defined(OS_CHROMEOS) | 476 #endif // defined(OS_CHROMEOS) |
| 477 | 477 |
| 478 // Returns the helper object that provides the proxy configuration service | 478 // Returns the helper object that provides the proxy configuration service |
| 479 // access to the the proxy configuration possibly defined by preferences. | 479 // access to the the proxy configuration possibly defined by preferences. |
| 480 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; | 480 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; |
| 481 | 481 |
| 482 // Returns the Predictor object used for dns prefetch. | 482 // Returns the Predictor object used for dns prefetch. |
| 483 virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0; | 483 virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0; |
| 484 | 484 |
| 485 // Deletes transport security state since |time|. The implementation | 485 // Deletes all network related data since |time|. It deletes transport |
| 486 // is free to run this on a background thread, so when this method | 486 // security state since |time| and it also delete HttpServerProperties data. |
| 487 // returns data is not guaranteed to be deleted. | 487 // The implementation is free to run this on a background thread, so when this |
| 488 virtual void DeleteTransportSecurityStateSince(base::Time time) = 0; | 488 // method returns data is not guaranteed to be deleted. |
| 489 virtual void ClearNetworkingHistorySince(base::Time time) = 0; |
| 489 | 490 |
| 490 std::string GetDebugName(); | 491 std::string GetDebugName(); |
| 491 | 492 |
| 492 // Returns whether it is a guest session. | 493 // Returns whether it is a guest session. |
| 493 static bool IsGuestSession(); | 494 static bool IsGuestSession(); |
| 494 | 495 |
| 495 #ifdef UNIT_TEST | 496 #ifdef UNIT_TEST |
| 496 // Use with caution. GetDefaultRequestContext may be called on any thread! | 497 // Use with caution. GetDefaultRequestContext may be called on any thread! |
| 497 static void set_default_request_context(net::URLRequestContextGetter* c) { | 498 static void set_default_request_context(net::URLRequestContextGetter* c) { |
| 498 default_request_context_ = c; | 499 default_request_context_ = c; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 struct hash<Profile*> { | 569 struct hash<Profile*> { |
| 569 std::size_t operator()(Profile* const& p) const { | 570 std::size_t operator()(Profile* const& p) const { |
| 570 return reinterpret_cast<std::size_t>(p); | 571 return reinterpret_cast<std::size_t>(p); |
| 571 } | 572 } |
| 572 }; | 573 }; |
| 573 | 574 |
| 574 } // namespace __gnu_cxx | 575 } // namespace __gnu_cxx |
| 575 #endif | 576 #endif |
| 576 | 577 |
| 577 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 578 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |