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

Unified Diff: content/browser/service_worker/service_worker_database.h

Issue 264713011: ServiceWorker: Implement DeleteAllDataForOrigin() in ServiceWorkerDatabase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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: content/browser/service_worker/service_worker_database.h
diff --git a/content/browser/service_worker/service_worker_database.h b/content/browser/service_worker/service_worker_database.h
index a2336dbc1fa3c33e67d9e11d96a87e4583029eaf..0ca876cc7fed593e7c0d3eea2c63af32c3d23e2b 100644
--- a/content/browser/service_worker/service_worker_database.h
+++ b/content/browser/service_worker/service_worker_database.h
@@ -128,6 +128,13 @@ class CONTENT_EXPORT ServiceWorkerDatabase {
// Returns true on success. Otherwise deletes nothing and returns false.
bool ClearPurgeableResourceIds(const std::set<int64>& ids);
+ // Delete all data for |origin|, namely, unique origin, registrations and
+ // resource records. Resources are moved to the purgeable list.
+ bool DeleteAllDataForOrigin(const GURL& origin);
+
+ // Delete all data on the database.
+ bool DeleteAllData();
+
bool is_disabled() const { return is_disabled_; }
bool was_corruption_detected() const { return was_corruption_detected_; }

Powered by Google App Engine
This is Rietveld 408576698