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

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

Issue 672813002: [ServiceWorker] Added size deltas and total size computation for QuotaM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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: 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 59b27648155b2298d6ba4fc8cd73a4f8834602bd..d8dbd07b4a822f4b1ba7ea268609c34e6e3bb1c7 100644
--- a/content/browser/service_worker/service_worker_database.h
+++ b/content/browser/service_worker/service_worker_database.h
@@ -123,15 +123,15 @@ class CONTENT_EXPORT ServiceWorkerDatabase {
// Writes |registration| and |resources| into the database and does following
// things:
// - If an old version of the registration exists, deletes it and sets
- // |deleted_version_id| to the old version id and
+ // |deleted_version| to the old version registration data object
// |newly_purgeable_resources| to its resources. Otherwise, sets
- // |deleted_version_id| to -1.
+ // |deleted_version->version_id| to -1.
// - Bumps the next registration id and the next version id if needed.
// - Removes |resources| from the uncommitted list if exist.
// Returns OK they are successfully written. Otherwise, returns an error.
Status WriteRegistration(const RegistrationData& registration,
const std::vector<ResourceRecord>& resources,
- int64* deleted_version_id,
+ RegistrationData* deleted_version,
std::vector<int64>* newly_purgeable_resources);
// Updates a registration for |registration_id| to an active state. Returns OK

Powered by Google App Engine
This is Rietveld 408576698