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

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

Issue 1329083002: Clear webapp storage when site data is cleared (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix silly test mistake Created 5 years, 3 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 0333d9fe2762e0d9be5661b4489e6b53842ef0af..2ebe6a0e2407784952fcee6dda8b00eef64b1e83 100644
--- a/chrome/browser/browsing_data/browsing_data_remover.h
+++ b/chrome/browser/browsing_data/browsing_data_remover.h
@@ -82,13 +82,17 @@ class BrowsingDataRemover
REMOVE_NOCHECKS = 1 << 16,
REMOVE_WEBRTC_IDENTITY = 1 << 17,
REMOVE_CACHE_STORAGE = 1 << 18,
+#if defined(OS_ANDROID)
+ REMOVE_WEBAPP_DATA = 1 << 19,
+#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
// protected-web origin.
REMOVE_HOSTED_APP_DATA_TESTONLY = 1 << 31,
// "Site data" includes cookies, appcache, file systems, indexedDBs, local
- // storage, webSQL, service workers, cache storage, and plugin data.
+ // storage, webSQL, service workers, cache storage, plugin data, and web app
+ // data (on Android).
REMOVE_SITE_DATA = REMOVE_APPCACHE | REMOVE_COOKIES | REMOVE_FILE_SYSTEMS |
REMOVE_INDEXEDDB |
REMOVE_LOCAL_STORAGE |
@@ -98,6 +102,9 @@ class BrowsingDataRemover
REMOVE_WEBSQL |
REMOVE_CHANNEL_IDS |
REMOVE_SITE_USAGE_DATA |
+#if defined(OS_ANDROID)
+ REMOVE_WEBAPP_DATA |
+#endif
REMOVE_WEBRTC_IDENTITY,
// Includes all the available remove options. Meant to be used by clients
@@ -386,6 +393,9 @@ class BrowsingDataRemover
#if defined(OS_ANDROID)
// Callback on UI thread when the precache history has been cleared.
void OnClearedPrecacheHistory();
+
+ // Callback on UI thread when the webapp data has been cleared.
+ void OnClearedWebappData();
#endif
void OnClearedDomainReliabilityMonitor();
@@ -446,6 +456,7 @@ class BrowsingDataRemover
bool waiting_for_clear_pnacl_cache_ = false;
#if defined(OS_ANDROID)
bool waiting_for_clear_precache_history_ = false;
+ bool waiting_for_clear_webapp_data_ = false;
#endif
bool waiting_for_clear_storage_partition_data_ = false;
#if defined(ENABLE_WEBRTC)
« no previous file with comments | « chrome/browser/android/webapps/webapp_registry.cc ('k') | chrome/browser/browsing_data/browsing_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698