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

Issue 54573002: Initial child-process side plumbing for starting an embedded ServiceWorker context (Closed)

Created:
7 years, 1 month ago by kinuko
Modified:
7 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Initial child-process side plumbing for starting an embedded ServiceWorker context Design assumptions (some assumptions can be tentative) for this CL: * ServiceWorkerProvider is going to be embedded in all frame/document * Browser process can tell which SWP is associated to which SW (if any), via SWP registration process that is not added yet * A newly created embedded worker context will always create its own shadow page for its loading context * A newly created embedded worker context stub will keep a ref to the embedding process No browser-side implementation / blink plumbing yet. This adds a new tiny dispatcher which listens messages solely on the renderer thread. BUG=313530 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237873

Patch Set 1 : #

Patch Set 2 : updated #

Total comments: 5

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : WebKit -> blink etc #

Total comments: 9

Patch Set 6 : addressed comments and removed some code #

Total comments: 5

Patch Set 7 : updated #

Patch Set 8 : updated #

Patch Set 9 : updated to match blink side changes #

Patch Set 10 : #

Total comments: 4

Patch Set 11 : #

Patch Set 12 : rebased #

Patch Set 13 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+329 lines, -0 lines) Patch
M content/common/service_worker_messages.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +12 lines, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 5 3 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 3 chunks +4 lines, -1 line 0 comments Download
A + content/renderer/service_worker/OWNERS View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A content/renderer/service_worker/embedded_worker_dispatcher.h View 1 2 3 4 5 6 7 1 chunk +49 lines, -0 lines 0 comments Download
A content/renderer/service_worker/embedded_worker_dispatcher.cc View 1 2 3 4 5 6 7 8 1 chunk +94 lines, -0 lines 0 comments Download
A content/renderer/service_worker/service_worker_context_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +63 lines, -0 lines 0 comments Download
A content/renderer/service_worker/service_worker_context_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +98 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
kinuko
Hi, before writing too much code I'd like to start with a smaller child-process only ...
7 years, 1 month ago (2013-10-31 12:16:24 UTC) #1
michaeln
I'm looking at the CL description and starting there. Design assumptions (some assumptions can be ...
7 years, 1 month ago (2013-10-31 23:31:36 UTC) #2
kinuko
On 2013/10/31 23:31:36, michaeln wrote: > I'm looking at the CL description and starting there. ...
7 years, 1 month ago (2013-10-31 23:56:26 UTC) #3
kinuko
I updated the design assumptions in the issue description and updated the CL. As you ...
7 years, 1 month ago (2013-11-01 13:20:12 UTC) #4
michaeln
https://codereview.chromium.org/54573002/diff/540001/content/child/service_worker/embedded_worker_dispatcher.cc File content/child/service_worker/embedded_worker_dispatcher.cc (right): https://codereview.chromium.org/54573002/diff/540001/content/child/service_worker/embedded_worker_dispatcher.cc#newcode29 content/child/service_worker/embedded_worker_dispatcher.cc:29: new EmbeddedWorkerStub(script_url, route_id); Its odd to see something newed ...
7 years, 1 month ago (2013-11-04 22:04:51 UTC) #5
kinuko
Some quick responses https://codereview.chromium.org/54573002/diff/540001/content/child/service_worker/embedded_worker_dispatcher.h File content/child/service_worker/embedded_worker_dispatcher.h (right): https://codereview.chromium.org/54573002/diff/540001/content/child/service_worker/embedded_worker_dispatcher.h#newcode25 content/child/service_worker/embedded_worker_dispatcher.h:25: void OnCreateWorker(const GURL& script_url, int route_id); ...
7 years, 1 month ago (2013-11-05 01:01:51 UTC) #6
kinuko
On 2013/11/05 01:01:51, kinuko wrote: > Some quick responses > > https://codereview.chromium.org/54573002/diff/540001/content/child/service_worker/embedded_worker_dispatcher.h > File content/child/service_worker/embedded_worker_dispatcher.h ...
7 years, 1 month ago (2013-11-05 08:24:26 UTC) #7
michaeln
> Sure, I had several more parameters for this but deleted them for now, as ...
7 years, 1 month ago (2013-11-05 23:10:22 UTC) #8
kinuko
Revised the skeleton code, ended up adding a lot more code though it still has ...
7 years, 1 month ago (2013-11-06 14:36:02 UTC) #9
kinuko
Reviewing the design by myself, I think I should get rid of the worker:thread map ...
7 years, 1 month ago (2013-11-07 03:59:17 UTC) #10
kinuko
Updated. 1) moved all embedded-worker related code into content/renderer for now (as having it in ...
7 years, 1 month ago (2013-11-07 07:33:06 UTC) #11
michaeln
This framing is looking pretty nice! https://codereview.chromium.org/54573002/diff/1060001/content/common/service_worker_messages.h File content/common/service_worker_messages.h (right): https://codereview.chromium.org/54573002/diff/1060001/content/common/service_worker_messages.h#newcode64 content/common/service_worker_messages.h:64: IPC_STRUCT_MEMBER(string16, script_source) Like ...
7 years, 1 month ago (2013-11-13 00:31:37 UTC) #12
kinuko
Updated, and removed some code that is not really wired yet. PTAL? https://codereview.chromium.org/54573002/diff/1060001/content/common/service_worker_messages.h File content/common/service_worker_messages.h ...
7 years, 1 month ago (2013-11-18 14:09:48 UTC) #13
michaeln
https://codereview.chromium.org/54573002/diff/1140002/content/common/service_worker_messages.h File content/common/service_worker_messages.h (right): https://codereview.chromium.org/54573002/diff/1140002/content/common/service_worker_messages.h#newcode58 content/common/service_worker_messages.h:58: IPC_STRUCT_MEMBER(int32, embedded_worker_id) I have a question regarding int32 vs ...
7 years, 1 month ago (2013-11-19 01:17:07 UTC) #14
kinuko
https://codereview.chromium.org/54573002/diff/1140002/content/common/service_worker_messages.h File content/common/service_worker_messages.h (right): https://codereview.chromium.org/54573002/diff/1140002/content/common/service_worker_messages.h#newcode61 content/common/service_worker_messages.h:61: IPC_STRUCT_MEMBER(string16, content_security_policy) On 2013/11/19 01:17:08, michaeln wrote: > Where ...
7 years, 1 month ago (2013-11-19 01:49:10 UTC) #15
kinuko
https://codereview.chromium.org/54573002/diff/1140002/content/common/service_worker_messages.h File content/common/service_worker_messages.h (right): https://codereview.chromium.org/54573002/diff/1140002/content/common/service_worker_messages.h#newcode61 content/common/service_worker_messages.h:61: IPC_STRUCT_MEMBER(string16, content_security_policy) On 2013/11/19 01:49:10, kinuko wrote: > On ...
7 years, 1 month ago (2013-11-19 07:30:58 UTC) #16
kinuko
Changed int32's to int. https://codereview.chromium.org/54573002/diff/1140002/content/common/service_worker_messages.h File content/common/service_worker_messages.h (right): https://codereview.chromium.org/54573002/diff/1140002/content/common/service_worker_messages.h#newcode58 content/common/service_worker_messages.h:58: IPC_STRUCT_MEMBER(int32, embedded_worker_id) > Question is ...
7 years, 1 month ago (2013-11-19 07:45:41 UTC) #17
alecflett
On 2013/11/19 07:45:41, kinuko wrote: > Changed int32's to int. > > https://codereview.chromium.org/54573002/diff/1140002/content/common/service_worker_messages.h > File ...
7 years, 1 month ago (2013-11-19 21:10:24 UTC) #18
michaeln
7 years, 1 month ago (2013-11-19 22:27:02 UTC) #19
michaeln
Not sure what happened to my comment ^^^? Here it is again (or close to ...
7 years, 1 month ago (2013-11-19 22:36:38 UTC) #20
kinuko
On 2013/11/19 22:36:38, michaeln wrote: > Not sure what happened to my comment ^^^? Here ...
7 years, 1 month ago (2013-11-20 01:37:07 UTC) #21
michaeln
> Can we revisit this later? I can remove these params from IPC msg for ...
7 years, 1 month ago (2013-11-20 01:59:00 UTC) #22
kinuko
Removed the CSP params from IPC. (For now they're still in WorkerStartData in blink API, ...
7 years, 1 month ago (2013-11-20 04:00:55 UTC) #23
michaeln
lgtm!
7 years, 1 month ago (2013-11-20 23:03:47 UTC) #24
kinuko
(Removed CSP related code, waiting for the other blink patch to land)
7 years, 1 month ago (2013-11-21 06:39:41 UTC) #25
kinuko
tsepez@: Can you review content/common/service_worker_messages.h changes? jochen@: Can you do the owner review for content/renderer ...
7 years, 1 month ago (2013-11-21 10:13:09 UTC) #26
jochen (gone - plz use gerrit)
lgtm
7 years, 1 month ago (2013-11-21 12:21:31 UTC) #27
Tom Sepez
messages LGTM with nits. https://codereview.chromium.org/54573002/diff/2000001/content/common/service_worker_messages.h File content/common/service_worker_messages.h (right): https://codereview.chromium.org/54573002/diff/2000001/content/common/service_worker_messages.h#newcode11 content/common/service_worker_messages.h:11: #include "third_party/WebKit/public/web/WebContentSecurityPolicy.h" nit: is this ...
7 years, 1 month ago (2013-11-21 20:03:46 UTC) #28
kinuko
Thanks! https://codereview.chromium.org/54573002/diff/2000001/content/common/service_worker_messages.h File content/common/service_worker_messages.h (right): https://codereview.chromium.org/54573002/diff/2000001/content/common/service_worker_messages.h#newcode11 content/common/service_worker_messages.h:11: #include "third_party/WebKit/public/web/WebContentSecurityPolicy.h" On 2013/11/21 20:03:46, Tom Sepez wrote: ...
7 years, 1 month ago (2013-11-22 03:46:19 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/54573002/2170001
7 years ago (2013-11-28 04:43:06 UTC) #30
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=194354
7 years ago (2013-11-28 04:57:58 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/54573002/2170001
7 years ago (2013-11-29 01:49:22 UTC) #32
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=196556
7 years ago (2013-11-29 02:23:17 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/54573002/2170001
7 years ago (2013-11-29 03:31:23 UTC) #34
commit-bot: I haz the power
7 years ago (2013-11-29 04:35:04 UTC) #35
Message was sent while issue was closed.
Change committed as 237873

Powered by Google App Engine
This is Rietveld 408576698