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

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

Issue 1420003004: Wipe out offline page data on clearing cookie and site data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 5 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 2ebe6a0e2407784952fcee6dda8b00eef64b1e83..f0b08471c1e9f92f0995aa98674f5f915d03f54e 100644
--- a/chrome/browser/browsing_data/browsing_data_remover.h
+++ b/chrome/browser/browsing_data/browsing_data_remover.h
@@ -84,6 +84,7 @@ class BrowsingDataRemover
REMOVE_CACHE_STORAGE = 1 << 18,
#if defined(OS_ANDROID)
REMOVE_WEBAPP_DATA = 1 << 19,
+ REMOVE_OFFLINE_PAGE_DATA = 1 << 20,
#endif
// The following flag is used only in tests. In normal usage, hosted app
// data is controlled by the REMOVE_COOKIES flag, applied to the
@@ -104,6 +105,7 @@ class BrowsingDataRemover
REMOVE_SITE_USAGE_DATA |
#if defined(OS_ANDROID)
REMOVE_WEBAPP_DATA |
+ REMOVE_OFFLINE_PAGE_DATA |
#endif
REMOVE_WEBRTC_IDENTITY,
@@ -396,6 +398,9 @@ class BrowsingDataRemover
// Callback on UI thread when the webapp data has been cleared.
void OnClearedWebappData();
+
+ // Callback on UI thread when the offline page data has been cleared.
+ void OnClearedOfflinePageData();
#endif
void OnClearedDomainReliabilityMonitor();
@@ -457,6 +462,7 @@ class BrowsingDataRemover
#if defined(OS_ANDROID)
bool waiting_for_clear_precache_history_ = false;
bool waiting_for_clear_webapp_data_ = false;
+ bool waiting_for_clear_offline_page_data_ = false;
#endif
bool waiting_for_clear_storage_partition_data_ = false;
#if defined(ENABLE_WEBRTC)

Powered by Google App Engine
This is Rietveld 408576698