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

Issue 118103002: Add IPC stubs between browser and ServiceWorker's worker context in the child process (Closed)

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

Description

Add IPC stubs between browser and ServiceWorker's worker context in the child process - Add ServiceWorkerHostMsg_WorkerStarted and ServiceWorkerHostMsg_WorkerStopped that are sent from embedded worker to the browser process - Add ServiceWorkerContextMsg_FetchEvent for messages from embedded worker to the browser process FetchEvent/FetchRequest code is a bit rough as it's meant to be a placeholder. I can remove the part from this CL if it doesn't look reay yet. The new code uses new IPC class (ServiceWorkerContextMsg) for dispatching messages specifically sent to the embedded workers's worker context, which may feel a bit noisy. (Alternative suggestions welcome) BUG=313530 R=alecflett@chromium.org, jochen@chromium.org, tsepez@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243081

Patch Set 1 #

Total comments: 10

Patch Set 2 : ServiceWorker -> EmbeddedWorker, Terminate -> Stop etc #

Total comments: 6

Patch Set 3 : addressed comments #

Total comments: 1

Patch Set 4 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+312 lines, -230 lines) Patch
M content/browser/service_worker/embedded_worker_instance.h View 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/service_worker/embedded_worker_instance.cc View 1 3 chunks +15 lines, -1 line 0 comments Download
M content/browser/service_worker/embedded_worker_instance_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/embedded_worker_registry.h View 2 chunks +16 lines, -3 lines 0 comments Download
M content/browser/service_worker/embedded_worker_registry.cc View 1 3 chunks +42 lines, -7 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 1 2 3 3 chunks +19 lines, -3 lines 0 comments Download
M content/common/service_worker_messages.h View 1 2 2 chunks +32 lines, -3 lines 0 comments Download
A content/common/service_worker_types.h View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A content/common/service_worker_types.cc View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M content/content_renderer.gypi View 1 1 chunk +4 lines, -2 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 chunks +4 lines, -1 line 0 comments Download
A + content/renderer/service_worker/embedded_worker_context_client.h View 1 3 chunks +12 lines, -7 lines 0 comments Download
A + content/renderer/service_worker/embedded_worker_context_client.cc View 1 6 chunks +29 lines, -16 lines 0 comments Download
A + content/renderer/service_worker/embedded_worker_context_message_filter.h View 1 2 chunks +7 lines, -16 lines 0 comments Download
A content/renderer/service_worker/embedded_worker_context_message_filter.cc View 1 1 chunk +48 lines, -0 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_dispatcher.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/service_worker/embedded_worker_dispatcher.cc View 1 5 chunks +8 lines, -6 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.h View 1 1 chunk +0 lines, -63 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 1 chunk +0 lines, -98 lines 0 comments Download
M ipc/ipc_message_start.h View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
kinuko
A bit rough (again), but I think it's ready for review. PTL
7 years ago (2013-12-18 09:18:42 UTC) #1
alecflett
lgtm with various suggestions both for here and the future. Really glad to see the ...
7 years ago (2013-12-19 00:59:10 UTC) #2
kinuko
I wasn't fully sure where we should split the two related modules, embeddedworker and serviceworker, ...
7 years ago (2013-12-20 08:01:08 UTC) #3
kinuko
tsepez@: mind reviewing content/common/service_worker_messages.h? jochen@: mind doing the owner review for content/* changes? (content/common, content/*.gypi, ...
7 years ago (2013-12-20 08:06:35 UTC) #4
jochen (gone - plz use gerrit)
https://codereview.chromium.org/118103002/diff/20001/content/common/service_worker_messages.h File content/common/service_worker_messages.h (right): https://codereview.chromium.org/118103002/diff/20001/content/common/service_worker_messages.h#newcode12 content/common/service_worker_messages.h:12: #include "third_party/WebKit/public/web/WebContentSecurityPolicy.h" why do you need this? https://codereview.chromium.org/118103002/diff/20001/content/common/service_worker_types.h File ...
7 years ago (2013-12-20 09:15:57 UTC) #5
kinuko
Thanks for reviewing, https://codereview.chromium.org/118103002/diff/20001/content/common/service_worker_messages.h File content/common/service_worker_messages.h (right): https://codereview.chromium.org/118103002/diff/20001/content/common/service_worker_messages.h#newcode12 content/common/service_worker_messages.h:12: #include "third_party/WebKit/public/web/WebContentSecurityPolicy.h" On 2013/12/20 09:15:58, jochen ...
7 years ago (2013-12-20 10:12:42 UTC) #6
jochen (gone - plz use gerrit)
lgtm https://codereview.chromium.org/118103002/diff/40001/content/common/service_worker_types.cc File content/common/service_worker_types.cc (right): https://codereview.chromium.org/118103002/diff/40001/content/common/service_worker_types.cc#newcode20 content/common/service_worker_types.cc:20: ServiceWorkerFetchRequest::~ServiceWorkerFetchRequest() {} nit. for POD structs, it's ok ...
7 years ago (2013-12-20 10:19:06 UTC) #7
Tom Sepez
Messages LGTM.
7 years ago (2013-12-20 18:05:15 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/118103002/40001
7 years ago (2013-12-20 21:54:10 UTC) #9
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=239306
7 years ago (2013-12-21 00:37:31 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/118103002/410001
6 years, 11 months ago (2014-01-06 03:32:16 UTC) #11
kinuko
6 years, 11 months ago (2014-01-06 11:00:10 UTC) #12
Message was sent while issue was closed.
Committed patchset #4 manually as r243081 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698