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

Issue 474593002: content::WebServiceWorkerCache implementation. (Closed)

Created:
6 years, 4 months ago by gavinp
Modified:
5 years, 11 months ago
CC:
alecflett+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, horo+watch_chromium.org, jam, jsbell+serviceworker_chromium.org, kinuko+serviceworker, nhiroki, serviceworker-reviews, tzik
Project:
chromium
Visibility:
Public.

Description

content::WebServiceWorkerCache implementation. The WebCache object itself is created by the ServiceWorkerCacheStorageDispatcher, which also handles much of its messaging for lifetime reasons, since a cache operation can outlive its WebServiceWorkerCache object. R=falken@chromium.org,jkarlin@chromium.org BUG=None Committed: https://crrev.com/203f6295dc41e5172931661cfa106ce9a66da92e Cr-Commit-Position: refs/heads/master@{#296726}

Patch Set 1 #

Patch Set 2 : narrower #

Total comments: 32

Patch Set 3 : rebase #

Patch Set 4 : fix rebsae #

Total comments: 6

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Patch Set 7 : remediate #

Patch Set 8 : rebase only #

Total comments: 4

Patch Set 9 : rebase and oilpan from jsbell #

Patch Set 10 : some lifetime issues around shutdown #

Total comments: 5

Patch Set 11 : rebase to webkit CL changes #

Patch Set 12 : rebase on top of blink #

Patch Set 13 : style #

Patch Set 14 : rebase on new header type #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+663 lines, -46 lines) Patch
M content/browser/service_worker/service_worker_cache_listener.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +22 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_listener.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +53 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +72 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_types.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +29 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_types.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +12 lines, -7 lines 0 comments Download
M content/renderer/service_worker/service_worker_cache_storage_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +84 lines, -11 lines 0 comments Download
M content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +391 lines, -25 lines 2 comments Download

Messages

Total messages: 27 (4 generated)
gavinp
falken, jkarlin: PTAL
6 years, 4 months ago (2014-08-14 01:13:47 UTC) #1
michaeln
https://codereview.chromium.org/474593002/diff/20001/content/common/service_worker/service_worker_messages.h File content/common/service_worker/service_worker_messages.h (right): https://codereview.chromium.org/474593002/diff/20001/content/common/service_worker/service_worker_messages.h#newcode330 content/common/service_worker/service_worker_messages.h:330: std::vector<content::ServiceWorkerResponse>) For the Match/MatchSuccess and MatchAll/MatchAllSuccess case, you also ...
6 years, 4 months ago (2014-08-15 02:50:24 UTC) #2
dominicc (has gone to gerrit)
DBCs inline. https://codereview.chromium.org/474593002/diff/20001/content/browser/service_worker/service_worker_cache_listener.cc File content/browser/service_worker/service_worker_cache_listener.cc (right): https://codereview.chromium.org/474593002/diff/20001/content/browser/service_worker/service_worker_cache_listener.cc#newcode64 content/browser/service_worker/service_worker_cache_listener.cc:64: void ServiceWorkerCacheListener::OnCacheStorageCreate( Can you privatize some of ...
6 years, 4 months ago (2014-08-15 06:48:36 UTC) #3
dominicc (has gone to gerrit)
https://codereview.chromium.org/474593002/diff/60001/content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc File content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc (right): https://codereview.chromium.org/474593002/diff/60001/content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc#newcode157 content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc:157: // The WebCache object is the chrome side implementation ...
6 years, 4 months ago (2014-08-21 06:25:24 UTC) #4
jsbell
jsbell@chromium.org changed reviewers: + jsbell@chromium.org
6 years, 3 months ago (2014-08-27 21:11:34 UTC) #5
jsbell
Maybe I'm just seeing this in an intermediate state... https://codereview.chromium.org/474593002/diff/60001/content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc File content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc (right): https://codereview.chromium.org/474593002/diff/60001/content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc#newcode270 content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc:270: ...
6 years, 3 months ago (2014-08-27 21:11:34 UTC) #6
gavinp
I've remediated to reviews, and matched this up more closely to upstream CLs. Please take ...
6 years, 3 months ago (2014-09-03 18:35:25 UTC) #7
jsbell
See commentary over in https://codereview.chromium.org/433793002/ but: https://codereview.chromium.org/544413002 is a Chromium-side patch that needs be applied ...
6 years, 3 months ago (2014-09-05 23:35:38 UTC) #8
michaeln
https://codereview.chromium.org/474593002/diff/140001/content/common/service_worker/service_worker_messages.h File content/common/service_worker/service_worker_messages.h (right): https://codereview.chromium.org/474593002/diff/140001/content/common/service_worker/service_worker_messages.h#newcode197 content/common/service_worker/service_worker_messages.h:197: IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_CacheMatch, The embedded worker routed message passing scheme only ...
6 years, 3 months ago (2014-09-06 00:56:41 UTC) #10
jsbell
lgtm I believe with one real nit. But (1) I'm not in OWNERS and (2) ...
6 years, 3 months ago (2014-09-18 22:55:58 UTC) #12
Tom Sepez
Messages LGTM.
6 years, 3 months ago (2014-09-18 23:00:15 UTC) #13
michaeln
r/s lgtm
6 years, 3 months ago (2014-09-19 20:14:46 UTC) #14
gavinp
This is now updated per the change in the blink CL, the complicated ownership scheme ...
6 years, 3 months ago (2014-09-23 16:02:27 UTC) #15
jsbell
https://codereview.chromium.org/474593002/diff/180001/content/renderer/service_worker/service_worker_cache_storage_dispatcher.h File content/renderer/service_worker/service_worker_cache_storage_dispatcher.h (right): https://codereview.chromium.org/474593002/diff/180001/content/renderer/service_worker/service_worker_cache_storage_dispatcher.h#newcode114 content/renderer/service_worker/service_worker_cache_storage_dispatcher.h:114: void onWebCacheDestruction(int cache_id); On 2014/09/18 22:55:58, jsbell wrote: > ...
6 years, 3 months ago (2014-09-23 17:32:19 UTC) #16
gavinp
Fixed your nit! https://codereview.chromium.org/474593002/diff/180001/content/common/service_worker/service_worker_types.cc File content/common/service_worker/service_worker_types.cc (right): https://codereview.chromium.org/474593002/diff/180001/content/common/service_worker/service_worker_types.cc#newcode23 content/common/service_worker/service_worker_types.cc:23: is_reload(is_reload) {} On 2014/09/18 22:55:58, jsbell ...
6 years, 3 months ago (2014-09-23 18:20:16 UTC) #17
jsbell
grepfight! grepfight! ;-) still lgtm !
6 years, 3 months ago (2014-09-23 18:25:41 UTC) #18
gavinp
On 2014/09/23 18:25:41, jsbell wrote: > grepfight! grepfight! ;-) > > still lgtm ! Upstream ...
6 years, 3 months ago (2014-09-24 15:06:44 UTC) #19
gavinp
I spoke too soon earlier; upstream reverted, then relanded. However that's done: https://codereview.chromium.org/603673002/ is the ...
6 years, 2 months ago (2014-09-25 15:36:26 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/474593002/250001
6 years, 2 months ago (2014-09-25 16:58:49 UTC) #22
commit-bot: I haz the power
Committed patchset #14 (id:250001) as ced14e2a597a37bc364ac4f50f9fcbc8dceffa2c
6 years, 2 months ago (2014-09-25 17:03:18 UTC) #23
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/203f6295dc41e5172931661cfa106ce9a66da92e Cr-Commit-Position: refs/heads/master@{#296726}
6 years, 2 months ago (2014-09-25 17:03:59 UTC) #24
jochen (gone - plz use gerrit)
https://codereview.chromium.org/474593002/diff/250001/content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc File content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc (right): https://codereview.chromium.org/474593002/diff/250001/content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc#newcode70 content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc:70: blink::WebReferrerPolicy::WebReferrerPolicyNever); this is not correct. You can't set a ...
5 years, 11 months ago (2015-01-21 13:55:14 UTC) #26
jochen (gone - plz use gerrit)
5 years, 11 months ago (2015-01-21 13:58:27 UTC) #27
Message was sent while issue was closed.
https://codereview.chromium.org/474593002/diff/250001/content/renderer/servic...
File content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc
(right):

https://codereview.chromium.org/474593002/diff/250001/content/renderer/servic...
content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc:70:
blink::WebReferrerPolicy::WebReferrerPolicyNever);
On 2015/01/21 at 13:55:14, jochen (slow) wrote:
> this is not correct. You can't set a referrer and the "never" policy.

The fact that referrer is a URL is also a bug :-/

Powered by Google App Engine
This is Rietveld 408576698