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

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

Issue 355163003: Don't prematurely delete script resources when registration is deleted (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 6475de04a99e759663456c9224fb40f568eca388..6a708fcc2655347988d73eac3b07647b4e2e50fb 100644
--- a/content/browser/service_worker/service_worker_database.h
+++ b/content/browser/service_worker/service_worker_database.h
@@ -139,10 +139,10 @@ class CONTENT_EXPORT ServiceWorkerDatabase {
// Deletes a registration for |registration_id| and moves resource records
// associated with it into the purgeable list. Returns OK if it's successfully
// deleted or not found in the database. Otherwise, returns an error.
- Status DeleteRegistration(
- int64 registration_id,
- const GURL& origin,
- std::vector<int64>* newly_purgeable_resources);
+ Status DeleteRegistration(int64 registration_id, const GURL& origin);
michaeln 2014/06/28 02:29:31 The database class should not need to change. It d
+
+ Status DeleteVersionResources(int64 version_id,
michaeln 2014/06/28 02:29:31 The seperate DeleteVersionResources method should
+ std::vector<int64>* newly_purgeable_resources);
// As new resources are put into the diskcache, they go into an uncommitted
// list. When a registration is saved that refers to those ids, they're

Powered by Google App Engine
This is Rietveld 408576698