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

Issue 246023007: Chromium-side plumbing for ServiceWorker -> Document postMessage (2/3) (Closed)

Created:
6 years, 8 months ago by kinuko
Modified:
6 years, 7 months ago
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+watch, alecflett+watch_chromium.org, jsbell
Visibility:
Public.

Description

Chromium-side plumbing for ServiceWorker -> Document postMessage (2/3) This is one of multi-sided patches for postMessage plumbing: 1/3: https://codereview.chromium.org/263143004/ (blink) 2/3: THIS PATCH 3/3: https://codereview.chromium.org/264233003/ (blink, adds Layout test) BUG=366063 TEST=to be added in the patch 3/3 R=jochen@chromium.org, jsbell@chromium.org, marja@chromium.org, tsepez@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269143

Patch Set 1 #

Patch Set 2 : added browser -> document code #

Total comments: 4

Patch Set 3 : addressed comments #

Patch Set 4 : message port threading fix #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -27 lines) Patch
M content/browser/message_port_message_filter.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/message_port_message_filter.cc View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 1 2 2 chunks +9 lines, -13 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host.cc View 1 2 2 chunks +20 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 2 3 chunks +16 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 1 chunk +3 lines, -9 lines 0 comments Download
M content/child/service_worker/service_worker_dispatcher.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M content/child/service_worker/service_worker_dispatcher.cc View 1 3 chunks +34 lines, -0 lines 0 comments Download
M content/child/service_worker/web_service_worker_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 4 chunks +17 lines, -3 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_context_client.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_context_client.cc View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M content/renderer/service_worker/service_worker_script_context.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/service_worker/service_worker_script_context.cc View 1 2 3 4 chunks +31 lines, -1 line 1 comment Download

Messages

Total messages: 17 (0 generated)
kinuko
This patch only covers half of the plumbing, though the part is basically ready for ...
6 years, 8 months ago (2014-04-23 11:13:22 UTC) #1
kinuko
Updated the code to include all chromium-side changes. PTL
6 years, 7 months ago (2014-05-06 07:49:03 UTC) #2
jochen (gone - plz use gerrit)
Marja, can you have a look at this?
6 years, 7 months ago (2014-05-06 16:09:08 UTC) #3
marja
Looks like a plumbing CL is expected to look. ... did I understand it correctly, ...
6 years, 7 months ago (2014-05-06 16:34:30 UTC) #4
jsbell
lgtm... re: entangling: this patch matches what we landed previously for document->worker postMessage (crrev.com/189253002), which ...
6 years, 7 months ago (2014-05-06 17:55:19 UTC) #5
kinuko
Updated. marja@ PTAL? https://codereview.chromium.org/246023007/diff/20001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/246023007/diff/20001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode153 content/browser/service_worker/service_worker_dispatcher_host.cc:153: for (size_t i = 0; i ...
6 years, 7 months ago (2014-05-07 05:56:21 UTC) #6
marja
lgtm
6 years, 7 months ago (2014-05-07 06:45:34 UTC) #7
jochen (gone - plz use gerrit)
lgtm if you update the test in the third step to pass a message port ...
6 years, 7 months ago (2014-05-07 06:56:37 UTC) #8
kinuko
On 2014/05/07 06:56:37, jochen wrote: > lgtm if you update the test in the third ...
6 years, 7 months ago (2014-05-07 07:00:17 UTC) #9
kinuko
Tom: could you do security review for content/common/service_worker/service_worker_messages.h ?
6 years, 7 months ago (2014-05-07 15:25:27 UTC) #10
Tom Sepez
lgtm
6 years, 7 months ago (2014-05-07 16:55:23 UTC) #11
kinuko
jsbell@: can you take one more look at the diff between PS3 and PS4? There ...
6 years, 7 months ago (2014-05-07 19:02:01 UTC) #12
jsbell
lgtm
6 years, 7 months ago (2014-05-07 23:35:48 UTC) #13
michaeln
https://codereview.chromium.org/246023007/diff/60001/content/renderer/service_worker/service_worker_script_context.cc File content/renderer/service_worker/service_worker_script_context.cc (right): https://codereview.chromium.org/246023007/diff/60001/content/renderer/service_worker/service_worker_script_context.cc#newcode99 content/renderer/service_worker/service_worker_script_context.cc:99: // to overtake those messages. ouch, that's a subtle ...
6 years, 7 months ago (2014-05-08 00:00:26 UTC) #14
kinuko
The CQ bit was checked by kinuko@chromium.org
6 years, 7 months ago (2014-05-09 00:08:30 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/246023007/60001
6 years, 7 months ago (2014-05-09 00:09:27 UTC) #16
kinuko
6 years, 7 months ago (2014-05-09 01:48:30 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 manually as r269143 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698