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

Unified Diff: chrome/browser/browsing_data_remover.h

Issue 7040015: Add a hook to clear Gears Plugin Data in the "Clear browsing data" tool. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: shutdown hook Created 9 years, 7 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
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/browsing_data_remover.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data_remover.h
diff --git a/chrome/browser/browsing_data_remover.h b/chrome/browser/browsing_data_remover.h
index a563c9a689bb7c216987a671e3f1f8550ec69d7c..ba50151e80cec7fa9013caf38826c391632b70df 100644
--- a/chrome/browser/browsing_data_remover.h
+++ b/chrome/browser/browsing_data_remover.h
@@ -91,6 +91,9 @@ class BrowsingDataRemover : public NotificationObserver,
static bool is_removing() { return removing_; }
+ // Removes the Gears plugin data.
+ static void ClearGearsData(const FilePath& profile_dir);
+
private:
enum CacheState {
STATE_NONE,
@@ -158,6 +161,12 @@ class BrowsingDataRemover : public NotificationObserver,
void OnAppCacheDeleted(int rv);
ChromeAppCacheService* GetAppCacheService();
+ // Callback when Gears data has been deleted. Invokes NotifyAndDeleteIfDone.
+ void OnClearedGearsData();
+
+ // Invoked on the FILE thread to delete old Gears data.
+ void ClearGearsDataOnFILEThread(const FilePath& profile_dir);
+
// Calculate the begin time for the deletion range specified by |time_period|.
base::Time CalculateBeginDeleteTime(TimePeriod time_period);
@@ -167,7 +176,7 @@ class BrowsingDataRemover : public NotificationObserver,
!waiting_for_clear_history_ &&
!waiting_for_clear_networking_history_ &&
!waiting_for_clear_databases_ && !waiting_for_clear_appcache_ &&
- !waiting_for_clear_lso_data_;
+ !waiting_for_clear_lso_data_ && !waiting_for_clear_gears_data_;
}
NotificationRegistrar registrar_;
@@ -218,6 +227,7 @@ class BrowsingDataRemover : public NotificationObserver,
bool waiting_for_clear_cache_;
bool waiting_for_clear_appcache_;
bool waiting_for_clear_lso_data_;
+ bool waiting_for_clear_gears_data_;
ObserverList<Observer> observer_list_;
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/browsing_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698