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

Unified Diff: content/browser/service_worker/service_worker_registration.cc

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: added tests 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_registration.cc
diff --git a/content/browser/service_worker/service_worker_registration.cc b/content/browser/service_worker/service_worker_registration.cc
index c99efc89ceb7d5c4c03087c75bf6106c1bad0a67..0445f08f7e646ba73497be4257adeb4d6ad008c3 100644
--- a/content/browser/service_worker/service_worker_registration.cc
+++ b/content/browser/service_worker/service_worker_registration.cc
@@ -32,6 +32,7 @@ ServiceWorkerRegistration::ServiceWorkerRegistration(
is_uninstalling_(false),
is_uninstalled_(false),
should_activate_when_ready_(false),
+ resources_total_size_bytes_(0),
context_(context) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
DCHECK(context_);
@@ -78,7 +79,8 @@ ServiceWorkerRegistrationInfo ServiceWorkerRegistration::GetInfo() {
registration_id_,
GetVersionInfo(active_version_.get()),
GetVersionInfo(waiting_version_.get()),
- GetVersionInfo(installing_version_.get()));
+ GetVersionInfo(installing_version_.get()),
+ resources_total_size_bytes_);
}
void ServiceWorkerRegistration::SetActiveVersion(
« no previous file with comments | « content/browser/service_worker/service_worker_registration.h ('k') | content/browser/service_worker/service_worker_storage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698