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

Unified Diff: chrome/browser/browsing_data/browsing_data_remover.h

Issue 11238034: Added completion notification to Profile's ClearNetworkingHistorySince. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Final touches. Created 8 years, 2 months 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
Index: chrome/browser/browsing_data/browsing_data_remover.h
diff --git a/chrome/browser/browsing_data/browsing_data_remover.h b/chrome/browser/browsing_data/browsing_data_remover.h
index 87d305bff6c5ccbf915b5acac313b26f0439184a..25d6145592e52c3082f27bbe327129856f9f96df 100644
--- a/chrome/browser/browsing_data/browsing_data_remover.h
+++ b/chrome/browser/browsing_data/browsing_data_remover.h
@@ -225,13 +225,24 @@ class BrowsingDataRemover : public content::NotificationObserver,
// object.
void NotifyAndDeleteIfDone();
- // Callback when the network history has been deleted. Invokes
- // NotifyAndDeleteIfDone.
- void ClearedNetworkHistory();
+ // Callback when the hostname resolution cache has been cleared.
+ // Clears the respective waiting flag and invokes NotifyAndDeleteIfDone.
+ void OnClearedHostnameResolutionCache();
+
+ // Invoked on the IO thread to clear the hostname resolution cache.
+ void ClearHostnameResolutionCacheOnIOThread(IOThread* io_thread);
+
+ // Callback when speculative data in the network Predictor has been cleared.
+ // Clears the respective waiting flag and invokes NotifyAndDeleteIfDone.
+ void OnClearedNetworkPredictor();
+
+ // Invoked on the IO thread to clear speculative data related to hostname
+ // pre-resolution from the network Predictor.
+ void ClearNetworkPredictorOnIOThread();
- // Invoked on the IO thread to clear the HostCache, speculative data about
- // subresources on visited sites, and initial navigation history.
- void ClearNetworkingHistory(IOThread* io_thread);
+ // Callback when network related data in ProfileIOData has been cleared.
+ // Clears the respective waiting flag and invokes NotifyAndDeleteIfDone.
+ void OnClearedNetworkingHistory();
// Callback when the cache has been deleted. Invokes NotifyAndDeleteIfDone.
void ClearedCache();
@@ -372,6 +383,8 @@ class BrowsingDataRemover : public content::NotificationObserver,
bool waiting_for_clear_quota_managed_data_;
bool waiting_for_clear_content_licenses_;
bool waiting_for_clear_form_;
+ bool waiting_for_clear_hostname_resolution_cache_;
+ bool waiting_for_clear_network_predictor_;
// Tracking how many origins need to be deleted, and whether we're finished
// gathering origins.

Powered by Google App Engine
This is Rietveld 408576698