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

Unified Diff: content/browser/service_worker/service_worker_info.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: addressed last comment 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_info.cc
diff --git a/content/browser/service_worker/service_worker_info.cc b/content/browser/service_worker/service_worker_info.cc
index d1ef56ec8a4a1ea257d94d3e0aec2021ad8ad07a..2870d667cb99d7fca863a3523116134a6e355b15 100644
--- a/content/browser/service_worker/service_worker_info.cc
+++ b/content/browser/service_worker/service_worker_info.cc
@@ -16,7 +16,8 @@ ServiceWorkerVersionInfo::ServiceWorkerVersionInfo()
version_id(kInvalidServiceWorkerVersionId),
process_id(-1),
thread_id(-1),
- devtools_agent_route_id(MSG_ROUTING_NONE) {
+ devtools_agent_route_id(MSG_ROUTING_NONE),
+ resources_total_size_bytes(0) {
}
ServiceWorkerVersionInfo::ServiceWorkerVersionInfo(
@@ -26,7 +27,8 @@ ServiceWorkerVersionInfo::ServiceWorkerVersionInfo(
int64 version_id,
int process_id,
int thread_id,
- int devtools_agent_route_id)
+ int devtools_agent_route_id,
+ size_t resources_total_size_bytes)
: is_null(false),
running_status(running_status),
status(status),
@@ -34,7 +36,8 @@ ServiceWorkerVersionInfo::ServiceWorkerVersionInfo(
version_id(version_id),
process_id(process_id),
thread_id(thread_id),
- devtools_agent_route_id(devtools_agent_route_id) {
+ devtools_agent_route_id(devtools_agent_route_id),
+ resources_total_size_bytes(resources_total_size_bytes) {
}
ServiceWorkerVersionInfo::~ServiceWorkerVersionInfo() {}

Powered by Google App Engine
This is Rietveld 408576698