Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2248)

Unified Diff: chrome/browser/profiles/profile.h

Issue 11238034: Added completion notification to Profile's ClearNetworkingHistorySince. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed IO/UI typo and rebased. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.cc ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile.h
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h
index f2e7b2f755987600a348fc4553035f8820c7fd8a..7edbee1130a64a24ff576993b6d389fef2dd20b3 100644
--- a/chrome/browser/profiles/profile.h
+++ b/chrome/browser/profiles/profile.h
@@ -294,10 +294,13 @@ class Profile : public content::BrowserContext {
virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0;
// Deletes all network related data since |time|. It deletes transport
- // security state since |time| and it also delete HttpServerProperties data.
- // The implementation is free to run this on a background thread, so when this
- // method returns data is not guaranteed to be deleted.
- virtual void ClearNetworkingHistorySince(base::Time time) = 0;
+ // security state since |time| and it also deletes HttpServerProperties data.
+ // Works asynchronously, however if the |completion| callback is non-null, it
+ // will be posted on the UI thread once the removal process completes.
+ // Be aware that theoretically it is possible that |completion| will be
+ // invoked after the Profile instance has been destroyed.
+ virtual void ClearNetworkingHistorySince(base::Time time,
+ const base::Closure& completion) = 0;
// Returns the home page for this profile.
virtual GURL GetHomePage() = 0;
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.cc ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698