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

Issue 672813002: [ServiceWorker] Added size deltas and total size computation for QuotaM. (Closed)

Created:
6 years, 2 months ago by dmurph
Modified:
6 years, 1 month ago
Reviewers:
michaeln, jam, jsbell
CC:
chromium-reviews, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, kinuko+serviceworker, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[ServiceWorker] Added size deltas and total size computation for QuotaM. BUG= Committed: https://crrev.com/66f514ae41532124cd90a4d6c51f594de83853e4 Cr-Commit-Position: refs/heads/master@{#302503}

Patch Set 1 #

Total comments: 16

Patch Set 2 : RegistrationData output for Delete #

Total comments: 10

Patch Set 3 : Refactoring, adding size everywhere #

Patch Set 4 : addressed last comment #

Total comments: 4

Patch Set 5 : Switching size storage to the registration info, not the version. Updated tests #

Total comments: 10

Patch Set 6 : final changes #

Patch Set 7 : Fixing piping issue, and added check for size propagation #

Total comments: 4

Patch Set 8 : added tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -178 lines) Patch
M content/browser/service_worker/service_worker_context_wrapper.cc View 1 2 3 4 5 1 chunk +4 lines, -11 lines 0 comments Download
M content/browser/service_worker/service_worker_database.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -5 lines 0 comments Download
M content/browser/service_worker/service_worker_database.cc View 1 2 3 4 5 6 7 5 chunks +14 lines, -15 lines 0 comments Download
M content/browser/service_worker/service_worker_database_unittest.cc View 1 2 3 4 40 chunks +69 lines, -68 lines 0 comments Download
M content/browser/service_worker/service_worker_info.h View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_info.cc View 1 2 3 4 5 1 chunk +8 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_quota_client.cc View 1 2 3 4 5 2 chunks +18 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_registration.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_registration.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_storage.h View 1 2 3 chunks +21 lines, -20 lines 0 comments Download
M content/browser/service_worker/service_worker_storage.cc View 1 2 3 4 5 6 7 12 chunks +66 lines, -48 lines 0 comments Download
M content/browser/service_worker/service_worker_storage_unittest.cc View 1 2 3 4 5 6 7 5 chunks +26 lines, -0 lines 0 comments Download
M content/public/browser/service_worker_usage_info.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M content/public/browser/service_worker_usage_info.cc View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 30 (5 generated)
dmurph
Hey guys, PTAL a look at the current patch for adding size deltas and total ...
6 years, 2 months ago (2014-10-23 01:24:14 UTC) #2
michaeln
https://codereview.chromium.org/672813002/diff/1/content/browser/service_worker/service_worker_context_wrapper.cc File content/browser/service_worker/service_worker_context_wrapper.cc (right): https://codereview.chromium.org/672813002/diff/1/content/browser/service_worker/service_worker_context_wrapper.cc#newcode192 content/browser/service_worker/service_worker_context_wrapper.cc:192: auto* usage_map_out = new std::map<GURL, int64>(); It took me ...
6 years, 1 month ago (2014-10-24 23:15:47 UTC) #3
dmurph
https://codereview.chromium.org/672813002/diff/1/content/browser/service_worker/service_worker_context_wrapper.cc File content/browser/service_worker/service_worker_context_wrapper.cc (right): https://codereview.chromium.org/672813002/diff/1/content/browser/service_worker/service_worker_context_wrapper.cc#newcode192 content/browser/service_worker/service_worker_context_wrapper.cc:192: auto* usage_map_out = new std::map<GURL, int64>(); On 2014/10/24 23:15:47, ...
6 years, 1 month ago (2014-10-27 21:37:07 UTC) #4
dmurph
Regarding ServiceWorkerRegistrationInfo, if you think that's the best approach, then I can try doing that. ...
6 years, 1 month ago (2014-10-28 20:04:46 UTC) #5
michaeln
https://codereview.chromium.org/672813002/diff/1/content/browser/service_worker/service_worker_context_wrapper.cc File content/browser/service_worker/service_worker_context_wrapper.cc (right): https://codereview.chromium.org/672813002/diff/1/content/browser/service_worker/service_worker_context_wrapper.cc#newcode192 content/browser/service_worker/service_worker_context_wrapper.cc:192: auto* usage_map_out = new std::map<GURL, int64>(); On 2014/10/27 21:37:06, ...
6 years, 1 month ago (2014-10-28 22:00:40 UTC) #6
michaeln
https://codereview.chromium.org/672813002/diff/1/content/browser/service_worker/service_worker_storage.cc File content/browser/service_worker/service_worker_storage.cc (right): https://codereview.chromium.org/672813002/diff/1/content/browser/service_worker/service_worker_storage.cc#newcode1503 content/browser/service_worker/service_worker_storage.cc:1503: context_->ScheduleDeleteAndStartOver(); On 2014/10/27 21:37:06, dmurph wrote: > On 2014/10/24 ...
6 years, 1 month ago (2014-10-28 22:13:11 UTC) #7
dmurph
Here is why it seems a bit complicated to add that to the ServiceWorkerVersionInfo: https://code.google.com/p/chromium/codesearch#chromium/src/content/browser/service_worker/service_worker_version.cc&l=148&rcl=1414562526 ...
6 years, 1 month ago (2014-10-29 18:22:01 UTC) #8
michaeln
> Next, I looked at ServiceWorkerRegistration, as that's a constructor arg. It > again would ...
6 years, 1 month ago (2014-10-29 19:51:03 UTC) #9
dmurph
Alright, so what do you think about this? I'm not super happy that I have ...
6 years, 1 month ago (2014-10-29 22:18:25 UTC) #10
michaeln
https://codereview.chromium.org/672813002/diff/60001/content/browser/service_worker/service_worker_context_wrapper.cc File content/browser/service_worker/service_worker_context_wrapper.cc (right): https://codereview.chromium.org/672813002/diff/60001/content/browser/service_worker/service_worker_context_wrapper.cc#newcode38 content/browser/service_worker/service_worker_context_wrapper.cc:38: GetUsageIfValid(registration_info.installing_version); Like we chatted about, going with a model ...
6 years, 1 month ago (2014-10-30 01:32:27 UTC) #11
dmurph
https://codereview.chromium.org/672813002/diff/60001/content/browser/service_worker/service_worker_context_wrapper.cc File content/browser/service_worker/service_worker_context_wrapper.cc (right): https://codereview.chromium.org/672813002/diff/60001/content/browser/service_worker/service_worker_context_wrapper.cc#newcode38 content/browser/service_worker/service_worker_context_wrapper.cc:38: GetUsageIfValid(registration_info.installing_version); On 2014/10/30 01:32:27, michaeln wrote: > Like we ...
6 years, 1 month ago (2014-10-30 22:06:16 UTC) #12
michaeln
lgtm we still have to do something about delete and start over, maybe put a ...
6 years, 1 month ago (2014-10-30 22:43:37 UTC) #13
michaeln
https://codereview.chromium.org/672813002/diff/80001/content/browser/service_worker/service_worker_quota_client.cc File content/browser/service_worker/service_worker_quota_client.cc (right): https://codereview.chromium.org/672813002/diff/80001/content/browser/service_worker/service_worker_quota_client.cc#newcode34 content/browser/service_worker/service_worker_quota_client.cc:34: void AccumulateUsage(const QuotaClient::GetUsageCallback& callback, oh, the name of this ...
6 years, 1 month ago (2014-10-30 23:32:24 UTC) #14
dmurph
https://codereview.chromium.org/672813002/diff/80001/content/browser/service_worker/service_worker_info.h File content/browser/service_worker/service_worker_info.h (right): https://codereview.chromium.org/672813002/diff/80001/content/browser/service_worker/service_worker_info.h#newcode47 content/browser/service_worker/service_worker_info.h:47: size_t active_version_total_size_bytes); On 2014/10/30 22:43:37, michaeln wrote: > maybe ...
6 years, 1 month ago (2014-10-31 19:10:50 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/672813002/100001
6 years, 1 month ago (2014-10-31 19:13:16 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/21568)
6 years, 1 month ago (2014-10-31 19:19:02 UTC) #19
dmurph
+jam for owners of "content/public/browser/service_worker_usage_info"
6 years, 1 month ago (2014-10-31 20:16:25 UTC) #21
dmurph
Also, I'm investigating why the cache size isn't incremented correctly.
6 years, 1 month ago (2014-10-31 20:18:08 UTC) #22
dmurph
Done, and added check in test.
6 years, 1 month ago (2014-10-31 21:55:38 UTC) #23
michaeln
https://codereview.chromium.org/672813002/diff/120001/content/browser/service_worker/service_worker_storage_unittest.cc File content/browser/service_worker/service_worker_storage_unittest.cc (right): https://codereview.chromium.org/672813002/diff/120001/content/browser/service_worker/service_worker_storage_unittest.cc#newcode386 content/browser/service_worker/service_worker_storage_unittest.cc:386: live_registration = NULL; After this point, the size value ...
6 years, 1 month ago (2014-10-31 23:10:58 UTC) #24
dmurph
https://codereview.chromium.org/672813002/diff/120001/content/browser/service_worker/service_worker_storage_unittest.cc File content/browser/service_worker/service_worker_storage_unittest.cc (right): https://codereview.chromium.org/672813002/diff/120001/content/browser/service_worker/service_worker_storage_unittest.cc#newcode386 content/browser/service_worker/service_worker_storage_unittest.cc:386: live_registration = NULL; On 2014/10/31 23:10:58, michaeln wrote: > ...
6 years, 1 month ago (2014-10-31 23:41:02 UTC) #25
jam
On 2014/10/31 20:16:25, dmurph wrote: > +jam for owners of "content/public/browser/service_worker_usage_info" lgtm
6 years, 1 month ago (2014-11-03 21:49:23 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/672813002/140001
6 years, 1 month ago (2014-11-03 21:52:20 UTC) #28
commit-bot: I haz the power
Committed patchset #8 (id:140001)
6 years, 1 month ago (2014-11-03 22:39:28 UTC) #29
commit-bot: I haz the power
6 years, 1 month ago (2014-11-03 22:40:24 UTC) #30
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/66f514ae41532124cd90a4d6c51f594de83853e4
Cr-Commit-Position: refs/heads/master@{#302503}

Powered by Google App Engine
This is Rietveld 408576698