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_; |