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

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

Issue 2745323004: Introduce DATA_TYPE_DOM_STORAGE for DOM-Accessible storage (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 358c62430907192a58c0fbe69dd5a8358c5240aa..4edae603f8cec0bf941a4b7d46dc32c73dbfe4fd 100644
--- a/chrome/browser/browsing_data/browsing_data_remover.h
+++ b/chrome/browser/browsing_data/browsing_data_remover.h
@@ -64,16 +64,30 @@ class BrowsingDataRemover : public KeyedService {
DATA_TYPE_SERVICE_WORKERS = 1 << 5,
DATA_TYPE_CACHE_STORAGE = 1 << 6,
+ // Used to request the deletion of embedder-specific storage datatypes.
+ DATA_TYPE_EMBEDDER_DOM_STORAGE = 1 << 7,
+
+ // DOM-accessible storage (https://www.w3.org/TR/clear-site-data/#storage).
+ // Has the same effect as selecting all storage datatypes listed above
+ // and ones defined by the embedder.
+ DATA_TYPE_DOM_STORAGE = DATA_TYPE_APP_CACHE | DATA_TYPE_FILE_SYSTEMS |
+ DATA_TYPE_INDEXED_DB |
+ DATA_TYPE_LOCAL_STORAGE |
+ DATA_TYPE_WEB_SQL |
+ DATA_TYPE_SERVICE_WORKERS |
+ DATA_TYPE_CACHE_STORAGE |
+ DATA_TYPE_EMBEDDER_DOM_STORAGE,
+
// Other datatypes.
- DATA_TYPE_COOKIES = 1 << 7,
- DATA_TYPE_CHANNEL_IDS = 1 << 8,
- DATA_TYPE_CACHE = 1 << 9,
- DATA_TYPE_DOWNLOADS = 1 << 10,
- DATA_TYPE_MEDIA_LICENSES = 1 << 11,
+ DATA_TYPE_COOKIES = 1 << 8,
+ DATA_TYPE_CHANNEL_IDS = 1 << 9,
+ DATA_TYPE_CACHE = 1 << 10,
+ DATA_TYPE_DOWNLOADS = 1 << 11,
+ DATA_TYPE_MEDIA_LICENSES = 1 << 12,
// REMOVE_NOCHECKS intentionally does not check if the browser context is
// prohibited from deleting history or downloads.
- DATA_TYPE_NO_CHECKS = 1 << 12,
+ DATA_TYPE_NO_CHECKS = 1 << 13,
// Embedders can add more datatypes beyond this point.
DATA_TYPE_CONTENT_END = DATA_TYPE_NO_CHECKS,
« no previous file with comments | « no previous file | chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698