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

Unified Diff: content/browser/service_worker/service_worker_registration.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: 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.h
diff --git a/content/browser/service_worker/service_worker_registration.h b/content/browser/service_worker/service_worker_registration.h
index cf9f5af980d297077adb122aa0c57034a6148ff6..b386eecfad3fa265444694eb99c850339b07ebc3 100644
--- a/content/browser/service_worker/service_worker_registration.h
+++ b/content/browser/service_worker/service_worker_registration.h
@@ -56,6 +56,14 @@ class CONTENT_EXPORT ServiceWorkerRegistration
bool is_uninstalling() const { return is_uninstalling_; }
bool is_uninstalled() const { return is_uninstalled_; }
+ int64_t resources_total_size_bytes() const {
+ return resources_total_size_bytes_;
+ }
+
+ void set_resources_total_size_bytes(int64_t resources_total_size_bytes) {
+ resources_total_size_bytes_ = resources_total_size_bytes;
+ }
+
ServiceWorkerVersion* active_version() const {
return active_version_.get();
}
@@ -144,6 +152,7 @@ class CONTENT_EXPORT ServiceWorkerRegistration
bool is_uninstalled_;
bool should_activate_when_ready_;
base::Time last_update_check_;
+ int64_t resources_total_size_bytes_;
scoped_refptr<ServiceWorkerVersion> active_version_;
scoped_refptr<ServiceWorkerVersion> waiting_version_;
scoped_refptr<ServiceWorkerVersion> installing_version_;

Powered by Google App Engine
This is Rietveld 408576698