| 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> |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 #endif // defined(OS_CHROMEOS) | 287 #endif // defined(OS_CHROMEOS) |
| 288 | 288 |
| 289 // Returns the helper object that provides the proxy configuration service | 289 // Returns the helper object that provides the proxy configuration service |
| 290 // access to the the proxy configuration possibly defined by preferences. | 290 // access to the the proxy configuration possibly defined by preferences. |
| 291 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; | 291 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; |
| 292 | 292 |
| 293 // Returns the Predictor object used for dns prefetch. | 293 // Returns the Predictor object used for dns prefetch. |
| 294 virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0; | 294 virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0; |
| 295 | 295 |
| 296 // Deletes all network related data since |time|. It deletes transport | 296 // Deletes all network related data since |time|. It deletes transport |
| 297 // security state since |time| and it also delete HttpServerProperties data. | 297 // security state since |time| and it also deletes HttpServerProperties data. |
| 298 // The implementation is free to run this on a background thread, so when this | 298 // Works asynchronously, however if the |completion| callback is non-null, it |
| 299 // method returns data is not guaranteed to be deleted. | 299 // will be posted on the UI thread once the removal process completes. |
| 300 virtual void ClearNetworkingHistorySince(base::Time time) = 0; | 300 // Be aware that theoretically it is possible that |completion| will be |
| 301 // invoked after the Profile instance has been destroyed. |
| 302 virtual void ClearNetworkingHistorySince(base::Time time, |
| 303 const base::Closure& completion) = 0; |
| 301 | 304 |
| 302 // Returns the home page for this profile. | 305 // Returns the home page for this profile. |
| 303 virtual GURL GetHomePage() = 0; | 306 virtual GURL GetHomePage() = 0; |
| 304 | 307 |
| 305 // Returns whether or not the profile was created by a version of Chrome | 308 // Returns whether or not the profile was created by a version of Chrome |
| 306 // more recent (or equal to) the one specified. | 309 // more recent (or equal to) the one specified. |
| 307 virtual bool WasCreatedByVersionOrLater(const std::string& version) = 0; | 310 virtual bool WasCreatedByVersionOrLater(const std::string& version) = 0; |
| 308 | 311 |
| 309 std::string GetDebugName(); | 312 std::string GetDebugName(); |
| 310 | 313 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 struct hash<Profile*> { | 397 struct hash<Profile*> { |
| 395 std::size_t operator()(Profile* const& p) const { | 398 std::size_t operator()(Profile* const& p) const { |
| 396 return reinterpret_cast<std::size_t>(p); | 399 return reinterpret_cast<std::size_t>(p); |
| 397 } | 400 } |
| 398 }; | 401 }; |
| 399 | 402 |
| 400 } // namespace BASE_HASH_NAMESPACE | 403 } // namespace BASE_HASH_NAMESPACE |
| 401 #endif | 404 #endif |
| 402 | 405 |
| 403 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 406 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |