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

Issue 2787883003: [ServiceWorker] Add EmbeddedWorkerInstanceHost Interface. (Closed)

Created:
3 years, 8 months ago by leonhsl(Using Gerrit)
Modified:
3 years, 8 months ago
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, viettrungluu+watch_chromium.org, qsr+mojo_chromium.org, mlamouri+watch-content_chromium.org, shimazu+serviceworker_chromium.org, serviceworker-reviews, jam, nhiroki, abarth-chromium, Aaron Boodman, kinuko+serviceworker, yzshen+watch_chromium.org, horo+watch_chromium.org, darin-cc_chromium.org, kinuko+watch, tzik, darin (slow to review), blink-worker-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[ServiceWorker] Add EmbeddedWorkerInstanceHost Interface. This CL converts these IPCs EmbeddedWorkerHostMsg_WorkerReadyForInspection EmbeddedWorkerHostMsg_WorkerScriptLoaded EmbeddedWorkerHostMsg_WorkerScriptLoadFailed EmbeddedWorkerHostMsg_WorkerScriptEvaluated EmbeddedWorkerHostMsg_WorkerStarted EmbeddedWorkerHostMsg_WorkerStopped EmbeddedWorkerHostMsg_ReportException EmbeddedWorkerHostMsg_ReportConsoleMessage EmbeddedWorkerHostMsg_WorkerThreadStarted into mojo interface EmbeddedWorkerInstanceHost, and associate it with existing interface EmbeddedWorkerInstanceClient. BUG=629701 TEST=content_unittests Review-Url: https://codereview.chromium.org/2787883003 Cr-Commit-Position: refs/heads/master@{#464878} Committed: https://chromium.googlesource.com/chromium/src/+/7a57143828b914abad790775f41ea97255ae9c11

Patch Set 1 #

Total comments: 5

Patch Set 2 #

Total comments: 6

Patch Set 3 : Fix test: ServiceWorkerContextTest.UnregisterMultiple #

Total comments: 22

Patch Set 4 : Address comments from shimazu@ #

Total comments: 10

Patch Set 5 : Rebase only #

Patch Set 6 : Remove EmbeddedWorkerDispatcher #

Total comments: 4

Patch Set 7 : Address comments from shimazu@ #

Total comments: 12

Patch Set 8 : Address comments from falken@ #

Total comments: 14

Patch Set 9 : Refine code comments #

Total comments: 31

Patch Set 10 : Refine code comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+499 lines, -917 lines) Patch
M content/browser/payments/payment_app_content_unittest_base.cc View 1 chunk +9 lines, -8 lines 0 comments Download
M content/browser/service_worker/embedded_worker_instance.h View 1 2 3 4 5 6 7 8 9 6 chunks +31 lines, -46 lines 0 comments Download
M content/browser/service_worker/embedded_worker_instance.cc View 1 2 3 4 13 chunks +40 lines, -22 lines 0 comments Download
M content/browser/service_worker/embedded_worker_instance_unittest.cc View 1 2 3 4 3 chunks +28 lines, -9 lines 0 comments Download
M content/browser/service_worker/embedded_worker_registry.h View 1 2 3 4 2 chunks +3 lines, -29 lines 0 comments Download
M content/browser/service_worker/embedded_worker_registry.cc View 1 2 3 4 2 chunks +6 lines, -97 lines 0 comments Download
M content/browser/service_worker/embedded_worker_test_helper.h View 1 2 3 4 5 6 7 8 9 7 chunks +23 lines, -11 lines 0 comments Download
M content/browser/service_worker/embedded_worker_test_helper.cc View 1 2 3 4 5 6 15 chunks +57 lines, -27 lines 0 comments Download
M content/browser/service_worker/service_worker_context_unittest.cc View 1 2 3 4 1 chunk +7 lines, -7 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc View 1 2 3 4 1 chunk +0 lines, -17 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.h View 1 2 chunks +0 lines, -18 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 1 2 3 4 3 chunks +0 lines, -153 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host_unittest.cc View 1 2 3 1 chunk +12 lines, -9 lines 0 comments Download
M content/browser/service_worker/service_worker_job_unittest.cc View 1 2 3 4 7 chunks +46 lines, -35 lines 0 comments Download
M content/browser/service_worker/service_worker_version_unittest.cc View 1 2 3 7 chunks +35 lines, -29 lines 0 comments Download
M content/common/service_worker/embedded_worker.mojom View 1 2 3 4 5 6 7 8 9 2 chunks +43 lines, -4 lines 0 comments Download
M content/common/service_worker/embedded_worker_messages.h View 1 2 3 1 chunk +0 lines, -64 lines 0 comments Download
M content/renderer/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 5 3 chunks +0 lines, -6 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 4 chunks +2 lines, -6 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_dispatcher.h View 1 2 3 4 5 1 chunk +0 lines, -87 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_dispatcher.cc View 1 2 3 4 5 1 chunk +0 lines, -129 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_instance_client_impl.h View 1 2 3 4 5 6 7 8 9 2 chunks +44 lines, -14 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_instance_client_impl.cc View 1 2 3 4 5 6 4 chunks +65 lines, -41 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.h View 1 2 3 4 3 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 2 3 4 5 6 7 8 9 12 chunks +42 lines, -47 lines 0 comments Download

Messages

Total messages: 84 (50 generated)
leonhsl(Using Gerrit)
Ps#1 adds the EmbeddedWorkerInstanceHost interface and converts only one IPC OnReadyForInspection, I'm planning to convert ...
3 years, 8 months ago (2017-03-31 06:28:02 UTC) #8
shimazu
Thanks for working on that! Overall looks good. I put a couple of comments. https://codereview.chromium.org/2787883003/diff/20001/content/common/service_worker/embedded_worker.mojom ...
3 years, 8 months ago (2017-03-31 09:56:22 UTC) #11
leonhsl(Using Gerrit)
Uploaded ps#2 which has completed implementations and modified related tests, PTAL, Thanks! https://codereview.chromium.org/2787883003/diff/20001/content/common/service_worker/embedded_worker.mojom File content/common/service_worker/embedded_worker.mojom ...
3 years, 8 months ago (2017-04-04 07:14:04 UTC) #22
leonhsl(Using Gerrit)
Uploaded ps#3 which fixed the mentioned test failure in ps#2, PTAnL, Thanks. https://codereview.chromium.org/2787883003/diff/100001/content/browser/service_worker/embedded_worker_test_helper.cc File content/browser/service_worker/embedded_worker_test_helper.cc ...
3 years, 8 months ago (2017-04-06 02:49:52 UTC) #31
shimazu
https://codereview.chromium.org/2787883003/diff/80001/content/browser/service_worker/service_worker_context_unittest.cc File content/browser/service_worker/service_worker_context_unittest.cc (right): https://codereview.chromium.org/2787883003/diff/80001/content/browser/service_worker/service_worker_context_unittest.cc#newcode481 content/browser/service_worker/service_worker_context_unittest.cc:481: // in inverse order with the 4 RegisterServiceWorker calls. ...
3 years, 8 months ago (2017-04-06 05:01:36 UTC) #32
leonhsl(Using Gerrit)
Uploaded ps#4, it gets better now! Thanks a lot for review! PTAnL. https://codereview.chromium.org/2787883003/diff/80001/content/browser/service_worker/service_worker_context_unittest.cc File content/browser/service_worker/service_worker_context_unittest.cc ...
3 years, 8 months ago (2017-04-06 09:58:56 UTC) #35
shimazu
Thanks for updating! Added several comments. https://codereview.chromium.org/2787883003/diff/120001/content/browser/service_worker/embedded_worker_registry.cc File content/browser/service_worker/embedded_worker_registry.cc (right): https://codereview.chromium.org/2787883003/diff/120001/content/browser/service_worker/embedded_worker_registry.cc#newcode87 content/browser/service_worker/embedded_worker_registry.cc:87: void EmbeddedWorkerRegistry::OnWorkerStoppedd(int process_id, ...
3 years, 8 months ago (2017-04-10 05:09:22 UTC) #38
shimazu
https://codereview.chromium.org/2787883003/diff/80001/content/browser/service_worker/service_worker_context_unittest.cc File content/browser/service_worker/service_worker_context_unittest.cc (right): https://codereview.chromium.org/2787883003/diff/80001/content/browser/service_worker/service_worker_context_unittest.cc#newcode481 content/browser/service_worker/service_worker_context_unittest.cc:481: // in inverse order with the 4 RegisterServiceWorker calls. ...
3 years, 8 months ago (2017-04-10 05:10:10 UTC) #39
leonhsl(Using Gerrit)
https://codereview.chromium.org/2787883003/diff/120001/content/browser/service_worker/embedded_worker_registry.cc File content/browser/service_worker/embedded_worker_registry.cc (right): https://codereview.chromium.org/2787883003/diff/120001/content/browser/service_worker/embedded_worker_registry.cc#newcode87 content/browser/service_worker/embedded_worker_registry.cc:87: void EmbeddedWorkerRegistry::OnWorkerStoppedd(int process_id, On 2017/04/10 05:09:22, shimazu wrote: > ...
3 years, 8 months ago (2017-04-10 06:10:36 UTC) #40
shimazu
https://codereview.chromium.org/2787883003/diff/120001/content/browser/service_worker/service_worker_version_unittest.cc File content/browser/service_worker/service_worker_version_unittest.cc (right): https://codereview.chromium.org/2787883003/diff/120001/content/browser/service_worker/service_worker_version_unittest.cc#newcode307 content/browser/service_worker/service_worker_version_unittest.cc:307: std::move(instance_host)); On 2017/04/10 06:10:36, leonhsl wrote: > On 2017/04/10 ...
3 years, 8 months ago (2017-04-10 09:33:40 UTC) #41
leonhsl(Using Gerrit)
https://codereview.chromium.org/2787883003/diff/120001/content/renderer/service_worker/embedded_worker_dispatcher.h File content/renderer/service_worker/embedded_worker_dispatcher.h (right): https://codereview.chromium.org/2787883003/diff/120001/content/renderer/service_worker/embedded_worker_dispatcher.h#newcode30 content/renderer/service_worker/embedded_worker_dispatcher.h:30: class EmbeddedWorkerDispatcher { On 2017/04/10 09:33:40, shimazu wrote: > ...
3 years, 8 months ago (2017-04-10 09:41:00 UTC) #42
leonhsl(Using Gerrit)
Uploaded ps#6 to remove EmbeddedWorkerDispatcher completely, PTAnL, Thanks.
3 years, 8 months ago (2017-04-11 02:53:14 UTC) #49
shimazu
Thanks a lot!:) Let me add a couple of minor commets; https://codereview.chromium.org/2787883003/diff/120001/content/browser/service_worker/service_worker_version_unittest.cc File content/browser/service_worker/service_worker_version_unittest.cc (right): ...
3 years, 8 months ago (2017-04-11 04:32:40 UTC) #50
leonhsl(Using Gerrit)
Uploaded ps#7 to address comments, PTAnL, Thanks. https://codereview.chromium.org/2787883003/diff/160001/content/browser/service_worker/embedded_worker_test_helper.cc File content/browser/service_worker/embedded_worker_test_helper.cc (right): https://codereview.chromium.org/2787883003/diff/160001/content/browser/service_worker/embedded_worker_test_helper.cc#newcode587 content/browser/service_worker/embedded_worker_test_helper.cc:587: auto host ...
3 years, 8 months ago (2017-04-11 05:52:28 UTC) #53
shimazu
lgtm
3 years, 8 months ago (2017-04-11 05:56:48 UTC) #54
leonhsl(Using Gerrit)
On 2017/04/11 05:56:48, shimazu wrote: > lgtm Thanks shimazu@ a lot for the great help ...
3 years, 8 months ago (2017-04-11 08:20:02 UTC) #57
leonhsl(Using Gerrit)
+kinuko@: OWNER review for //content/ except service_worker bits. +tsepez@: OWNER review for embedded_worker.mojom and embedded_worker_messages.h. ...
3 years, 8 months ago (2017-04-11 08:26:08 UTC) #59
falken
I just quickly looked at the mojom file. https://codereview.chromium.org/2787883003/diff/180001/content/common/service_worker/embedded_worker.mojom File content/common/service_worker/embedded_worker.mojom (right): https://codereview.chromium.org/2787883003/diff/180001/content/common/service_worker/embedded_worker.mojom#newcode16 content/common/service_worker/embedded_worker.mojom:16: // ...
3 years, 8 months ago (2017-04-11 08:29:27 UTC) #60
leonhsl(Using Gerrit)
Thanks falken@ for review! Uploaded ps#8 to address comments, PTAnL. https://codereview.chromium.org/2787883003/diff/180001/content/common/service_worker/embedded_worker.mojom File content/common/service_worker/embedded_worker.mojom (right): https://codereview.chromium.org/2787883003/diff/180001/content/common/service_worker/embedded_worker.mojom#newcode16 ...
3 years, 8 months ago (2017-04-11 09:29:02 UTC) #63
kinuko
lgtm % nits https://codereview.chromium.org/2787883003/diff/200001/content/browser/service_worker/embedded_worker_instance.h File content/browser/service_worker/embedded_worker_instance.h (right): https://codereview.chromium.org/2787883003/diff/200001/content/browser/service_worker/embedded_worker_instance.h#newcode225 content/browser/service_worker/embedded_worker_instance.h:225: // Be called when the worker ...
3 years, 8 months ago (2017-04-11 14:03:17 UTC) #66
falken
https://codereview.chromium.org/2787883003/diff/200001/content/browser/service_worker/embedded_worker_instance.h File content/browser/service_worker/embedded_worker_instance.h (right): https://codereview.chromium.org/2787883003/diff/200001/content/browser/service_worker/embedded_worker_instance.h#newcode225 content/browser/service_worker/embedded_worker_instance.h:225: // Be called when the worker instance has ack'ed ...
3 years, 8 months ago (2017-04-11 14:10:05 UTC) #67
falken
This is a nice change! Some more nitty comments, I'm viewing this mojofication stuff as ...
3 years, 8 months ago (2017-04-11 14:27:36 UTC) #68
Tom Sepez
lgtm
3 years, 8 months ago (2017-04-11 16:45:34 UTC) #69
kinuko
https://codereview.chromium.org/2787883003/diff/200001/content/browser/service_worker/embedded_worker_instance.h File content/browser/service_worker/embedded_worker_instance.h (right): https://codereview.chromium.org/2787883003/diff/200001/content/browser/service_worker/embedded_worker_instance.h#newcode225 content/browser/service_worker/embedded_worker_instance.h:225: // Be called when the worker instance has ack'ed ...
3 years, 8 months ago (2017-04-12 00:49:44 UTC) #70
leonhsl(Using Gerrit)
I'll be OOO this afternoon and will update ASAP later, Thanks all for the review ...
3 years, 8 months ago (2017-04-12 03:34:04 UTC) #71
leonhsl(Using Gerrit)
Uploaded ps#9 to refine code comments, PTAnL, Thanks. https://codereview.chromium.org/2787883003/diff/200001/content/browser/service_worker/embedded_worker_instance.h File content/browser/service_worker/embedded_worker_instance.h (right): https://codereview.chromium.org/2787883003/diff/200001/content/browser/service_worker/embedded_worker_instance.h#newcode225 content/browser/service_worker/embedded_worker_instance.h:225: // ...
3 years, 8 months ago (2017-04-12 12:32:12 UTC) #72
falken
This is looking good. Thanks for bearing with my comments. Due to the size of ...
3 years, 8 months ago (2017-04-12 14:30:19 UTC) #73
shimazu
https://codereview.chromium.org/2787883003/diff/220001/content/renderer/service_worker/service_worker_context_client.cc File content/renderer/service_worker/service_worker_context_client.cc (right): https://codereview.chromium.org/2787883003/diff/220001/content/renderer/service_worker/service_worker_context_client.cc#newcode708 content/renderer/service_worker/service_worker_context_client.cc:708: // (2) ProviderDestroyed (via following On 2017/04/12 14:30:18, falken ...
3 years, 8 months ago (2017-04-13 00:58:44 UTC) #74
leonhsl(Using Gerrit)
Thanks a lot for the refinement! uploaded ps#10, PTAnL. https://codereview.chromium.org/2787883003/diff/220001/content/browser/service_worker/embedded_worker_instance.h File content/browser/service_worker/embedded_worker_instance.h (right): https://codereview.chromium.org/2787883003/diff/220001/content/browser/service_worker/embedded_worker_instance.h#newcode225 content/browser/service_worker/embedded_worker_instance.h:225: ...
3 years, 8 months ago (2017-04-13 03:10:49 UTC) #75
leonhsl(Using Gerrit)
On 2017/04/12 14:30:19, falken wrote: > This is looking good. Thanks for bearing with my ...
3 years, 8 months ago (2017-04-13 03:13:36 UTC) #76
falken
lgtm. this looks great, thanks let's land this after the branch point, which should be ...
3 years, 8 months ago (2017-04-13 14:39:13 UTC) #77
leonhsl(Using Gerrit)
M59 branch has been announced out at https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/JgMDrp__ucg, so let's land this now. Thank you ...
3 years, 8 months ago (2017-04-16 01:24:32 UTC) #78
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2787883003/240001
3 years, 8 months ago (2017-04-16 01:24:57 UTC) #81
commit-bot: I haz the power
3 years, 8 months ago (2017-04-16 03:26:18 UTC) #84
Message was sent while issue was closed.
Committed patchset #10 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/7a57143828b914abad790775f41e...

Powered by Google App Engine
This is Rietveld 408576698