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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 #endif // defined(OS_CHROMEOS) | 316 #endif // defined(OS_CHROMEOS) |
317 | 317 |
318 // Returns the helper object that provides the proxy configuration service | 318 // Returns the helper object that provides the proxy configuration service |
319 // access to the the proxy configuration possibly defined by preferences. | 319 // access to the the proxy configuration possibly defined by preferences. |
320 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; | 320 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; |
321 | 321 |
322 // Returns the Predictor object used for dns prefetch. | 322 // Returns the Predictor object used for dns prefetch. |
323 virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0; | 323 virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0; |
324 | 324 |
325 // Deletes all network related data since |time|. It deletes transport | 325 // Deletes all network related data since |time|. It deletes transport |
326 // security state since |time| and it also delete HttpServerProperties data. | 326 // security state since |time| and it also deletes HttpServerProperties data. |
327 // The implementation is free to run this on a background thread, so when this | 327 // Works asynchronously, however if the |completion| callback is non-null, it |
328 // method returns data is not guaranteed to be deleted. | 328 // will be posted on the UI thread once the removal process completes. |
329 virtual void ClearNetworkingHistorySince(base::Time time) = 0; | 329 // Be aware that theoretically it is possible that |completion| will be |
| 330 // invoked after the Profile instance has been destroyed. |
| 331 virtual void ClearNetworkingHistorySince(base::Time time, |
| 332 const base::Closure& completion) = 0; |
330 | 333 |
331 // Returns the home page for this profile. | 334 // Returns the home page for this profile. |
332 virtual GURL GetHomePage() = 0; | 335 virtual GURL GetHomePage() = 0; |
333 | 336 |
334 // Returns whether or not the profile was created by a version of Chrome | 337 // Returns whether or not the profile was created by a version of Chrome |
335 // more recent (or equal to) the one specified. | 338 // more recent (or equal to) the one specified. |
336 virtual bool WasCreatedByVersionOrLater(const std::string& version) = 0; | 339 virtual bool WasCreatedByVersionOrLater(const std::string& version) = 0; |
337 | 340 |
338 std::string GetDebugName(); | 341 std::string GetDebugName(); |
339 | 342 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 struct hash<Profile*> { | 425 struct hash<Profile*> { |
423 std::size_t operator()(Profile* const& p) const { | 426 std::size_t operator()(Profile* const& p) const { |
424 return reinterpret_cast<std::size_t>(p); | 427 return reinterpret_cast<std::size_t>(p); |
425 } | 428 } |
426 }; | 429 }; |
427 | 430 |
428 } // namespace BASE_HASH_NAMESPACE | 431 } // namespace BASE_HASH_NAMESPACE |
429 #endif | 432 #endif |
430 | 433 |
431 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 434 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |