Index: content/browser/service_worker/service_worker_version.h |
diff --git a/content/browser/service_worker/service_worker_version.h b/content/browser/service_worker/service_worker_version.h |
index 24dd459dfb369ab05a3bc5032207fa120a79a985..e116534f603d450f2f11f95e4f34fbb2d1fc744f 100644 |
--- a/content/browser/service_worker/service_worker_version.h |
+++ b/content/browser/service_worker/service_worker_version.h |
@@ -109,6 +109,14 @@ class CONTENT_EXPORT ServiceWorkerVersion |
ServiceWorkerVersionInfo GetInfo(); |
Status status() const { return status_; } |
+ size_t resources_total_size_bytes() const { |
+ return resources_total_size_bytes_; |
+ } |
+ // Should only be called by ServiceWorkerStorage::StoreRegistration |
+ void set_resources_total_size_bytes(size_t resources_total_size_bytes) { |
+ resources_total_size_bytes_ = resources_total_size_bytes; |
+ } |
+ |
// This sets the new status and also run status change callbacks |
// if there're any (see RegisterStatusChangeCallback). |
void SetStatus(Status status); |
@@ -274,6 +282,7 @@ class CONTENT_EXPORT ServiceWorkerVersion |
GURL script_url_; |
GURL scope_; |
Status status_; |
+ size_t resources_total_size_bytes_; |
scoped_ptr<EmbeddedWorkerInstance> embedded_worker_; |
scoped_ptr<ServiceWorkerCacheListener> cache_listener_; |
std::vector<StatusCallback> start_callbacks_; |