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

Issue 633273002: Added quota client for serviceworker. Enables 'clear past <time> data'. (Closed)

Created:
6 years, 2 months ago by dmurph
Modified:
6 years, 2 months ago
Reviewers:
*michaeln, jsbell, *sky
CC:
chromium-reviews, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, 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

Added quota client for serviceworker. Enables 'clear past <time> data'. BUG=419287 Committed: https://crrev.com/f6916df879bf23bacf994880359c980f4249e324 Cr-Commit-Position: refs/heads/master@{#299918} Committed: https://crrev.com/c80cbb840ad0ba704fdfa913135adcdcf8ba94b4 Cr-Commit-Position: refs/heads/master@{#300405}

Patch Set 1 #

Total comments: 71

Patch Set 2 : Logic to Core #

Total comments: 35

Patch Set 3 : Fix test, merge, style, and debug stuff #

Patch Set 4 : Small fixes #

Patch Set 5 : Rebased #

Patch Set 6 : Removed unnecessary IO thread switch #

Total comments: 2

Patch Set 7 : final #

Patch Set 8 : Fix for crashing, added IsAlive on wrapper #

Total comments: 2

Patch Set 9 : Moved alive check to wrapper. #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+344 lines, -51 lines) Patch
M content/browser/service_worker/service_worker_context_core.h View 1 2 3 4 5 6 7 2 chunks +10 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_core.cc View 1 2 3 4 5 6 7 8 9 3 chunks +61 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_unittest.cc View 1 2 3 4 5 6 7 1 chunk +83 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.h View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.cc View 1 2 3 4 5 6 7 8 7 chunks +50 lines, -23 lines 0 comments Download
M content/browser/service_worker/service_worker_database.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
A + content/browser/service_worker/service_worker_quota_client.h View 1 2 3 4 5 6 7 8 9 2 chunks +17 lines, -21 lines 0 comments Download
A content/browser/service_worker/service_worker_quota_client.cc View 1 2 8 1 chunk +95 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_storage.cc View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M storage/browser/quota/quota_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 42 (11 generated)
dmurph
Hey Guys, PTAL and let me know if I should do any architectural changes. Tested ...
6 years, 2 months ago (2014-10-08 01:41:24 UTC) #2
dmurph
On 2014/10/08 01:41:24, dmurph wrote: > Hey Guys, > > PTAL and let me know ...
6 years, 2 months ago (2014-10-08 01:57:14 UTC) #3
jsbell
Thanks for tackling this! Needs tests (as you're working on). Lots of style nits - ...
6 years, 2 months ago (2014-10-08 19:26:42 UTC) #4
jsbell
On 2014/10/08 01:57:14, dmurph wrote: > Found the issue, it was with IndexedDB. It reports ...
6 years, 2 months ago (2014-10-08 19:27:18 UTC) #5
michaeln
What meta data do we want to expose around dates/times/sizes? Looks like that should be ...
6 years, 2 months ago (2014-10-08 23:09:16 UTC) #6
michaeln
https://codereview.chromium.org/633273002/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/633273002/diff/1/content/browser/service_worker/service_worker_context_wrapper.cc#newcode280 content/browser/service_worker/service_worker_context_wrapper.cc:280: void ServiceWorkerContextWrapper::InitInternal( > Please give architectural input I think ...
6 years, 2 months ago (2014-10-08 23:28:46 UTC) #7
dmurph
Lots of replies, and a couple questions. https://codereview.chromium.org/633273002/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/633273002/diff/1/content/browser/service_worker/service_worker_context_wrapper.cc#newcode58 content/browser/service_worker/service_worker_context_wrapper.cc:58: if (quota_manager_proxy) ...
6 years, 2 months ago (2014-10-11 00:02:27 UTC) #8
jsbell
A few nits. Can you double check that I'm correct about the reason the test ...
6 years, 2 months ago (2014-10-13 20:54:26 UTC) #9
dmurph
https://codereview.chromium.org/633273002/diff/20001/content/browser/service_worker/service_worker_context_core.cc File content/browser/service_worker/service_worker_context_core.cc (right): https://codereview.chromium.org/633273002/diff/20001/content/browser/service_worker/service_worker_context_core.cc#newcode222 content/browser/service_worker/service_worker_context_core.cc:222: callback.Run(SERVICE_WORKER_ERROR_ABORT); On 2014/10/13 20:54:25, jsbell wrote: > Should this ...
6 years, 2 months ago (2014-10-14 00:16:32 UTC) #10
michaeln
https://codereview.chromium.org/633273002/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/633273002/diff/1/content/browser/service_worker/service_worker_context_wrapper.cc#newcode122 content/browser/service_worker/service_worker_context_wrapper.cc:122: BrowserThread::UI, Not related to your cl... Oh, the wrapper ...
6 years, 2 months ago (2014-10-14 00:50:31 UTC) #11
dmurph
+sky for owners. Michael is on vacation today, we're aiming to try to get this ...
6 years, 2 months ago (2014-10-14 21:04:50 UTC) #14
sky
What specific files do you need me to review?
6 years, 2 months ago (2014-10-14 22:57:32 UTC) #15
dmurph
Whoops, nevermind, git cl upload thought I needed to add you but it looks like ...
6 years, 2 months ago (2014-10-14 23:01:55 UTC) #16
dmurph
removing sky
6 years, 2 months ago (2014-10-14 23:02:09 UTC) #19
michaeln
lgtm https://codereview.chromium.org/633273002/diff/280001/content/browser/service_worker/service_worker_context_wrapper.h File content/browser/service_worker/service_worker_context_wrapper.h (right): https://codereview.chromium.org/633273002/diff/280001/content/browser/service_worker/service_worker_context_wrapper.h#newcode78 content/browser/service_worker/service_worker_context_wrapper.h:78: const ResultCallback& done); since this method isn't in ...
6 years, 2 months ago (2014-10-15 22:21:36 UTC) #20
dmurph
https://codereview.chromium.org/633273002/diff/280001/content/browser/service_worker/service_worker_context_wrapper.h File content/browser/service_worker/service_worker_context_wrapper.h (right): https://codereview.chromium.org/633273002/diff/280001/content/browser/service_worker/service_worker_context_wrapper.h#newcode78 content/browser/service_worker/service_worker_context_wrapper.h:78: const ResultCallback& done); On 2014/10/15 22:21:36, michaeln wrote: > ...
6 years, 2 months ago (2014-10-16 01:41:57 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/633273002/300001
6 years, 2 months ago (2014-10-16 01:43:56 UTC) #23
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/17956)
6 years, 2 months ago (2014-10-16 01:59:39 UTC) #25
dmurph
Adding sky@ for content/browser/storage_partition_impl.cc approval.
6 years, 2 months ago (2014-10-16 02:05:22 UTC) #28
sky
LGTM
6 years, 2 months ago (2014-10-16 16:04:38 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/633273002/300001
6 years, 2 months ago (2014-10-16 16:44:17 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:300001)
6 years, 2 months ago (2014-10-16 17:49:28 UTC) #32
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/f6916df879bf23bacf994880359c980f4249e324 Cr-Commit-Position: refs/heads/master@{#299918}
6 years, 2 months ago (2014-10-16 17:50:15 UTC) #33
kareng
A revert of this CL (patchset #7 id:300001) has been created in https://codereview.chromium.org/654323003/ by kareng@google.com. ...
6 years, 2 months ago (2014-10-18 01:36:45 UTC) #34
dmurph
Hey Michael, I caused some crashing because the wrapper was shutdown, yet the quota manager ...
6 years, 2 months ago (2014-10-20 19:28:05 UTC) #35
michaeln
https://codereview.chromium.org/633273002/diff/320001/content/browser/service_worker/service_worker_quota_client.cc File content/browser/service_worker/service_worker_quota_client.cc (right): https://codereview.chromium.org/633273002/diff/320001/content/browser/service_worker/service_worker_quota_client.cc#newcode63 content/browser/service_worker/service_worker_quota_client.cc:63: !context_->IsAlive()) { Wdyt about putting this test into wrapper ...
6 years, 2 months ago (2014-10-20 20:08:23 UTC) #36
dmurph
Switched to handling 'alive' in the wrapper. https://codereview.chromium.org/633273002/diff/320001/content/browser/service_worker/service_worker_quota_client.cc File content/browser/service_worker/service_worker_quota_client.cc (right): https://codereview.chromium.org/633273002/diff/320001/content/browser/service_worker/service_worker_quota_client.cc#newcode63 content/browser/service_worker/service_worker_quota_client.cc:63: !context_->IsAlive()) { ...
6 years, 2 months ago (2014-10-20 21:34:18 UTC) #37
michaeln
thnx, lgtm and fyi jkarlin is trying to reland his quota client patch right now ...
6 years, 2 months ago (2014-10-20 22:00:23 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/633273002/360001
6 years, 2 months ago (2014-10-21 02:02:57 UTC) #40
commit-bot: I haz the power
Committed patchset #10 (id:360001)
6 years, 2 months ago (2014-10-21 03:05:37 UTC) #41
commit-bot: I haz the power
6 years, 2 months ago (2014-10-21 03:11:53 UTC) #42
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/c80cbb840ad0ba704fdfa913135adcdcf8ba94b4
Cr-Commit-Position: refs/heads/master@{#300405}

Powered by Google App Engine
This is Rietveld 408576698