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

Issue 140893002: Adding slightly clearer separation between SW and EmbeddedWorker (still incomplete) (Closed)

Created:
6 years, 11 months ago by kinuko
Modified:
6 years, 11 months ago
CC:
chromium-reviews, tzik, jam, nhiroki, joi+watch-content_chromium.org, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+watch
Visibility:
Public.

Description

Adding slightly clearer separation between SW and EmbeddedWorker (still incomplete) I'm still a bit unsure about bringing separation here is a good thing, but this patch adds slightly clearer separation between them. * EmbeddedWorkerInstance now has generic SendMessage() and OnMessageReceived() observer method (instead of SendFetchRequest etc) * ServiceWorker's script context messages are sent and dispatched from/to ServiceWorkerVersion to/from ServiceWorkerScriptContext via EW layer. * EW/SW separation in blink and dispatcher_host is not made yet (and no plan to add it for now) BUG=313530 TBR=avi Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=246276

Patch Set 1 #

Total comments: 2

Patch Set 2 : nit fixes #

Patch Set 3 : added TODO to filter messages on the browser side #

Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -33 lines) Patch
M content/browser/service_worker/embedded_worker_instance.h View 4 chunks +11 lines, -2 lines 0 comments Download
M content/browser/service_worker/embedded_worker_instance.cc View 3 chunks +8 lines, -6 lines 0 comments Download
M content/browser/service_worker/embedded_worker_registry.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/service_worker/embedded_worker_registry.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_browsertest.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 2 chunks +11 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.h View 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 2 chunks +9 lines, -0 lines 0 comments Download
M content/common/service_worker/embedded_worker_messages.h View 4 chunks +9 lines, -9 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 3 chunks +11 lines, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_context_client.h View 1 4 chunks +14 lines, -5 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_context_client.cc View 5 chunks +20 lines, -11 lines 0 comments Download
A content/renderer/service_worker/service_worker_script_context.h View 1 chunk +53 lines, -0 lines 0 comments Download
A content/renderer/service_worker/service_worker_script_context.cc View 1 chunk +43 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
kinuko
This patch removes some SW-specific part from EW code. This patch adds a bit more ...
6 years, 11 months ago (2014-01-16 15:12:32 UTC) #1
alecflett
I really like this. I think partly-hazy is fine, and this nicely identifies whats hazy ...
6 years, 11 months ago (2014-01-16 17:50:08 UTC) #2
kinuko
Ok, then I'll try implementing install flow in this direction too. https://codereview.chromium.org/140893002/diff/1/content/browser/service_worker/service_worker_browsertest.cc File content/browser/service_worker/service_worker_browsertest.cc (right): ...
6 years, 11 months ago (2014-01-17 03:18:54 UTC) #3
kinuko
tsepez@: could you review changes in content/common/service_worker/*_messages.h? avi@: could you review content/content_renderer.gypi? (Might just land ...
6 years, 11 months ago (2014-01-17 03:29:13 UTC) #4
Tom Sepez
I didn't see any checks on the kinds of messages that can be tunneled inside ...
6 years, 11 months ago (2014-01-17 18:13:46 UTC) #5
alecflett
On 2014/01/17 18:13:46, Tom Sepez wrote: > I didn't see any checks on the kinds ...
6 years, 11 months ago (2014-01-17 18:42:09 UTC) #6
Tom Sepez
The question is whether we think there is a security boundary between the worker and ...
6 years, 11 months ago (2014-01-17 18:50:47 UTC) #7
alecflett
On 2014/01/17 18:50:47, Tom Sepez wrote: > The question is whether we think there is ...
6 years, 11 months ago (2014-01-17 22:02:59 UTC) #8
kinuko
On 2014/01/17 22:02:59, alecflett wrote: > On 2014/01/17 18:50:47, Tom Sepez wrote: > > The ...
6 years, 11 months ago (2014-01-20 03:48:07 UTC) #9
kinuko
tsepez@: friendly ping, could you give your thoughts? > Given that we'll filter messages on ...
6 years, 11 months ago (2014-01-21 01:45:40 UTC) #10
Tom Sepez
On 2014/01/21 01:45:40, kinuko wrote: > tsepez@: friendly ping, could you give your thoughts? > ...
6 years, 11 months ago (2014-01-21 20:38:53 UTC) #11
kinuko
On 2014/01/21 20:38:53, Tom Sepez wrote: > On 2014/01/21 01:45:40, kinuko wrote: > > tsepez@: ...
6 years, 11 months ago (2014-01-22 01:36:24 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/140893002/460001
6 years, 11 months ago (2014-01-22 01:38:52 UTC) #13
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=216746
6 years, 11 months ago (2014-01-22 04:21:26 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/140893002/460001
6 years, 11 months ago (2014-01-22 06:35:49 UTC) #15
commit-bot: I haz the power
6 years, 11 months ago (2014-01-22 10:34:47 UTC) #16
Message was sent while issue was closed.
Change committed as 246276

Powered by Google App Engine
This is Rietveld 408576698