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