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

Issue 477973002: Add Keys() function to ServiceWorkerCache. (Closed)

Created:
6 years, 4 months ago by jkarlin
Modified:
6 years, 3 months ago
Reviewers:
michaeln, gavinp
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@cache_patch
Project:
chromium
Visibility:
Public.

Description

Add Keys() function to ServiceWorkerCache. Other changes: * Introduced a ReadHeaders helper function which reads headers from a cache entry into a protobuf. This is used by Match() and Keys(). BUG=392621 Committed: https://crrev.com/cd6ec97606ab4b18c83199e873b28e6ef7846718 Cr-Commit-Position: refs/heads/master@{#292945}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Now what the spec expects #

Patch Set 4 : nits #

Patch Set 5 : Big Rebase #

Patch Set 6 : Nits after rebase #

Patch Set 7 : Rebase #

Patch Set 8 : Nits #

Patch Set 9 : Rebase #

Total comments: 22

Patch Set 10 : Rebase #

Patch Set 11 : Addresses comments from PS9 #

Total comments: 8

Patch Set 12 : Address comments from PS11 and enable SimpleCache everywhere #

Total comments: 4

Patch Set 13 : Remove accidental change to entry unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+330 lines, -58 lines) Patch
M content/browser/service_worker/service_worker_cache.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +23 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_cache.cc View 1 2 3 4 5 6 7 8 9 10 11 11 chunks +210 lines, -37 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +97 lines, -21 lines 0 comments Download

Messages

Total messages: 23 (2 generated)
jkarlin
jkarlin@chromium.org changed reviewers: + falken@chromium.org, michaeln@chromium.org
6 years, 3 months ago (2014-08-26 16:45:26 UTC) #1
jkarlin
michaeln@chromium.org: Please review changes in all falken@chromium.org: Please review changes in all
6 years, 3 months ago (2014-08-26 16:45:26 UTC) #2
michaeln
took me a while to read thru https://codereview.chromium.org/477973002/diff/160001/content/browser/service_worker/service_worker_cache.cc File content/browser/service_worker/service_worker_cache.cc (right): https://codereview.chromium.org/477973002/diff/160001/content/browser/service_worker/service_worker_cache.cc#newcode51 content/browser/service_worker/service_worker_cache.cc:51: entries->at(i)->Close(); delete ...
6 years, 3 months ago (2014-08-27 23:45:20 UTC) #3
jkarlin
Patchset #11 (id:200001) has been deleted
6 years, 3 months ago (2014-08-28 15:09:54 UTC) #4
jkarlin
https://codereview.chromium.org/477973002/diff/160001/content/browser/service_worker/service_worker_cache.cc File content/browser/service_worker/service_worker_cache.cc (right): https://codereview.chromium.org/477973002/diff/160001/content/browser/service_worker/service_worker_cache.cc#newcode51 content/browser/service_worker/service_worker_cache.cc:51: entries->at(i)->Close(); On 2014/08/27 23:45:20, michaeln wrote: > delete entries ...
6 years, 3 months ago (2014-08-28 15:16:11 UTC) #5
michaeln
i have one question about the reading data breaks enumeration behavior... https://codereview.chromium.org/477973002/diff/220001/content/browser/service_worker/service_worker_cache.cc File content/browser/service_worker/service_worker_cache.cc (right): ...
6 years, 3 months ago (2014-08-28 23:49:39 UTC) #6
jkarlin
https://codereview.chromium.org/477973002/diff/220001/content/browser/service_worker/service_worker_cache.cc File content/browser/service_worker/service_worker_cache.cc (right): https://codereview.chromium.org/477973002/diff/220001/content/browser/service_worker/service_worker_cache.cc#newcode774 content/browser/service_worker/service_worker_cache.cc:774: // forever if you read data from a cache ...
6 years, 3 months ago (2014-08-29 11:09:38 UTC) #7
jkarlin
On 2014/08/29 11:09:38, jkarlin wrote: > https://codereview.chromium.org/477973002/diff/220001/content/browser/service_worker/service_worker_cache.cc > File content/browser/service_worker/service_worker_cache.cc (right): > > https://codereview.chromium.org/477973002/diff/220001/content/browser/service_worker/service_worker_cache.cc#newcode774 > ...
6 years, 3 months ago (2014-08-29 13:01:25 UTC) #8
jkarlin
On 2014/08/29 13:01:25, jkarlin wrote: > On 2014/08/29 11:09:38, jkarlin wrote: > > > https://codereview.chromium.org/477973002/diff/220001/content/browser/service_worker/service_worker_cache.cc ...
6 years, 3 months ago (2014-08-29 13:20:04 UTC) #9
jkarlin
On 2014/08/29 13:01:25, jkarlin wrote: > On 2014/08/29 11:09:38, jkarlin wrote: > > > https://codereview.chromium.org/477973002/diff/220001/content/browser/service_worker/service_worker_cache.cc ...
6 years, 3 months ago (2014-08-29 13:20:06 UTC) #10
jkarlin
On 2014/08/29 13:20:06, jkarlin wrote: > On 2014/08/29 13:01:25, jkarlin wrote: > > On 2014/08/29 ...
6 years, 3 months ago (2014-08-29 15:15:05 UTC) #11
jkarlin
+gavinp for discussion Okay so here is the deal: SimpleCache is fine with enumeration. BlockFileCache ...
6 years, 3 months ago (2014-08-29 19:43:29 UTC) #13
michaeln
lgtm https://codereview.chromium.org/477973002/diff/260001/content/browser/service_worker/service_worker_cache.cc File content/browser/service_worker/service_worker_cache.cc (right): https://codereview.chromium.org/477973002/diff/260001/content/browser/service_worker/service_worker_cache.cc#newcode813 content/browser/service_worker/service_worker_cache.cc:813: DCHECK(!keys_context->enumerated_entry); btw, ty for switching to having a ...
6 years, 3 months ago (2014-08-29 20:08:26 UTC) #14
michaeln
oh, the cl description is a little stale now
6 years, 3 months ago (2014-08-29 20:08:49 UTC) #15
jkarlin
https://codereview.chromium.org/477973002/diff/260001/content/browser/service_worker/service_worker_cache.cc File content/browser/service_worker/service_worker_cache.cc (right): https://codereview.chromium.org/477973002/diff/260001/content/browser/service_worker/service_worker_cache.cc#newcode813 content/browser/service_worker/service_worker_cache.cc:813: DCHECK(!keys_context->enumerated_entry); On 2014/08/29 20:08:26, michaeln wrote: > btw, ty ...
6 years, 3 months ago (2014-09-02 11:31:38 UTC) #16
jkarlin
On 2014/09/02 11:31:38, jkarlin wrote: > https://codereview.chromium.org/477973002/diff/260001/content/browser/service_worker/service_worker_cache.cc > File content/browser/service_worker/service_worker_cache.cc (right): > > https://codereview.chromium.org/477973002/diff/260001/content/browser/service_worker/service_worker_cache.cc#newcode813 > ...
6 years, 3 months ago (2014-09-02 11:31:52 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jkarlin@chromium.org/477973002/280001
6 years, 3 months ago (2014-09-02 13:03:09 UTC) #19
commit-bot: I haz the power
Committed patchset #13 (id:280001) as 02812f0a3edcacca1f7e05ea0a47cb3d8c6025e1
6 years, 3 months ago (2014-09-02 16:47:04 UTC) #20
scottmg
A revert of this CL (patchset #13 id:280001) has been created in https://codereview.chromium.org/534683002/ by scottmg@chromium.org. ...
6 years, 3 months ago (2014-09-02 18:18:13 UTC) #21
jsbell
On 2014/09/02 18:18:13, scottmg wrote: > A revert of this CL (patchset #13 id:280001) has ...
6 years, 3 months ago (2014-09-02 22:04:31 UTC) #22
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:19:04 UTC) #23
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/cd6ec97606ab4b18c83199e873b28e6ef7846718
Cr-Commit-Position: refs/heads/master@{#292945}

Powered by Google App Engine
This is Rietveld 408576698