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

Issue 2746783002: [ServiceWorker] Mojofy InstallEvent of Service Worker (Closed)

Created:
3 years, 9 months ago by xiaofengzhang
Modified:
3 years, 7 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] Mojofy InstallEvent of Service Worker This CL converts install event IPCs into mojo interface: ServiceWorkerMsg_InstallEvent ServiceWorkerHostMsg_InstallEventFinished Also add an associated interface for the ForeignFetchRegistration, so that this event be sent on the same message pipe as the service worker event dispatcher interface, so that we can guarantee the delivery order of foreign fetch register calls and event dispatcher interface callbacks. Also add the test cases for the associated interface. BUG=629701 TEST=content_unittests Review-Url: https://codereview.chromium.org/2746783002 Cr-Commit-Position: refs/heads/master@{#468544} Committed: https://chromium.googlesource.com/chromium/src/+/aeae396182b48115df4170d4e6e61aea9b2e7416

Patch Set 1 #

Total comments: 13

Patch Set 2 : Rebase and address falken, leon and mek's comments #

Total comments: 8

Patch Set 3 : Rebase and address shimazu's comment #33 #

Total comments: 4

Patch Set 4 : Rebase #

Total comments: 36

Patch Set 5 : Address leon's comments #58 #

Patch Set 6 : Address shimazu's comment #66 and leon's #69 #

Total comments: 13

Patch Set 7 : Address leon's comment #76 and fix test failure #

Patch Set 8 : Rebase 2824193002 #

Patch Set 9 : Fix the test failure #

Total comments: 28

Patch Set 10 : Address shimazu's comment #95 and horo's #105 #

Total comments: 1

Patch Set 11 : Just delete a useless line #

Unified diffs Side-by-side diffs Delta from patch set Stats (+273 lines, -371 lines) Patch
M content/browser/service_worker/embedded_worker_test_helper.h View 1 2 3 4 5 6 7 8 9 7 chunks +11 lines, -18 lines 0 comments Download
M content/browser/service_worker/embedded_worker_test_helper.cc View 1 2 3 4 5 6 7 8 9 6 chunks +21 lines, -29 lines 0 comments Download
M content/browser/service_worker/service_worker_browsertest.cc View 1 2 3 4 1 chunk +9 lines, -14 lines 0 comments Download
M content/browser/service_worker/service_worker_context_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +18 lines, -19 lines 0 comments Download
M content/browser/service_worker/service_worker_job_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +58 lines, -7 lines 0 comments Download
M content/browser/service_worker/service_worker_register_job.h View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_register_job.cc View 1 2 3 4 5 6 7 8 9 2 chunks +46 lines, -22 lines 0 comments Download
M content/browser/service_worker/service_worker_version.h View 1 2 3 4 5 6 7 8 9 5 chunks +5 lines, -12 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 2 3 4 5 3 chunks +1 line, -23 lines 0 comments Download
M content/browser/service_worker/service_worker_version_unittest.cc View 1 2 3 4 5 6 7 11 chunks +10 lines, -186 lines 0 comments Download
M content/common/service_worker/service_worker_event_dispatcher.mojom View 1 2 3 3 chunks +13 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 3 2 chunks +0 lines, -10 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.h View 1 2 3 4 5 6 7 8 9 4 chunks +5 lines, -2 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 2 3 4 5 6 7 8 9 11 chunks +48 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/InstallEvent.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/InstallEvent.cpp View 1 2 3 4 5 3 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 134 (95 generated)
xiaofengzhang
Hi shimazu, falken there is a test failure: FATAL:service_worker_version.cc(1395)] Check failed: status() == INSTALLING That's ...
3 years, 9 months ago (2017-03-14 06:45:11 UTC) #11
falken
+mek for foreign fetch. Overall this looks good. I don't have a good answer about ...
3 years, 9 months ago (2017-03-14 08:49:26 UTC) #13
Marijn Kruisselbrink
On 2017/03/14 at 08:49:26, falken wrote: > +mek for foreign fetch. > > Overall this ...
3 years, 9 months ago (2017-03-14 17:35:28 UTC) #14
leonhsl(Using Gerrit)
On 2017/03/14 17:35:28, Marijn Kruisselbrink wrote: > On 2017/03/14 at 08:49:26, falken wrote: > > ...
3 years, 9 months ago (2017-03-15 07:36:29 UTC) #15
Marijn Kruisselbrink
On 2017/03/15 at 07:36:29, leon.han wrote: > On 2017/03/14 17:35:28, Marijn Kruisselbrink wrote: > > ...
3 years, 9 months ago (2017-03-15 17:49:03 UTC) #16
xiaofengzhang
https://codereview.chromium.org/2746783002/diff/20001/content/browser/service_worker/embedded_worker_test_helper.cc File content/browser/service_worker/embedded_worker_test_helper.cc (right): https://codereview.chromium.org/2746783002/diff/20001/content/browser/service_worker/embedded_worker_test_helper.cc#newcode394 content/browser/service_worker/embedded_worker_test_helper.cc:394: callback.Run(SERVICE_WORKER_OK, true, base::Time::Now()); On 2017/03/14 08:49:26, falken wrote: > ...
3 years, 8 months ago (2017-04-01 02:27:21 UTC) #18
xiaofengzhang
On 2017/04/01 02:27:21, xiaofengzhang wrote: > https://codereview.chromium.org/2746783002/diff/20001/content/browser/service_worker/embedded_worker_test_helper.cc > File content/browser/service_worker/embedded_worker_test_helper.cc (right): > > https://codereview.chromium.org/2746783002/diff/20001/content/browser/service_worker/embedded_worker_test_helper.cc#newcode394 > ...
3 years, 8 months ago (2017-04-01 02:31:32 UTC) #19
shimazu
Sorry for late coming and thanks for working on this. Leon seems to set the ...
3 years, 8 months ago (2017-04-05 05:01:27 UTC) #33
xiaofengzhang
shimazu@ I'm very sorry for late coming. I will refine this patch a.s.a.p. base on ...
3 years, 8 months ago (2017-04-18 06:46:17 UTC) #38
leonhsl(Using Gerrit)
Almost nits. And seems still have some red bots, let's investigate more. https://codereview.chromium.org/2746783002/diff/80001/content/browser/service_worker/service_worker_register_job.h File content/browser/service_worker/service_worker_register_job.h ...
3 years, 8 months ago (2017-04-23 03:33:10 UTC) #58
shimazu
Thanks for moving it forward:) I guess this is still in update, but let me ...
3 years, 7 months ago (2017-04-24 05:00:13 UTC) #61
xiaofengzhang
https://codereview.chromium.org/2746783002/diff/120001/content/browser/service_worker/service_worker_register_job.cc File content/browser/service_worker/service_worker_register_job.cc (right): https://codereview.chromium.org/2746783002/diff/120001/content/browser/service_worker/service_worker_register_job.cc#newcode90 content/browser/service_worker/service_worker_register_job.cc:90: base::WrapUnique(new InstallEventMethodsReceiver(job)), On 2017/04/23 03:33:10, leonhsl wrote: > Use ...
3 years, 7 months ago (2017-04-24 05:02:41 UTC) #62
leonhsl(Using Gerrit)
https://codereview.chromium.org/2746783002/diff/120001/content/browser/service_worker/service_worker_register_job.cc File content/browser/service_worker/service_worker_register_job.cc (right): https://codereview.chromium.org/2746783002/diff/120001/content/browser/service_worker/service_worker_register_job.cc#newcode89 content/browser/service_worker/service_worker_register_job.cc:89: mojo::MakeStrongAssociatedBinding( On 2017/04/24 05:00:13, shimazu wrote: > I feel ...
3 years, 7 months ago (2017-04-24 05:34:26 UTC) #64
xiaofengzhang
https://codereview.chromium.org/2746783002/diff/120001/content/browser/service_worker/embedded_worker_test_helper.cc File content/browser/service_worker/embedded_worker_test_helper.cc (right): https://codereview.chromium.org/2746783002/diff/120001/content/browser/service_worker/embedded_worker_test_helper.cc#newcode429 content/browser/service_worker/embedded_worker_test_helper.cc:429: bool handled = true; On 2017/04/24 05:00:13, shimazu wrote: ...
3 years, 7 months ago (2017-04-24 05:44:08 UTC) #65
shimazu
https://codereview.chromium.org/2746783002/diff/120001/content/browser/service_worker/embedded_worker_test_helper.cc File content/browser/service_worker/embedded_worker_test_helper.cc (right): https://codereview.chromium.org/2746783002/diff/120001/content/browser/service_worker/embedded_worker_test_helper.cc#newcode429 content/browser/service_worker/embedded_worker_test_helper.cc:429: bool handled = true; On 2017/04/24 05:44:08, xiaofengzhang wrote: ...
3 years, 7 months ago (2017-04-24 06:22:19 UTC) #66
leonhsl(Using Gerrit)
https://codereview.chromium.org/2746783002/diff/120001/content/browser/service_worker/service_worker_register_job.cc File content/browser/service_worker/service_worker_register_job.cc (right): https://codereview.chromium.org/2746783002/diff/120001/content/browser/service_worker/service_worker_register_job.cc#newcode89 content/browser/service_worker/service_worker_register_job.cc:89: mojo::MakeStrongAssociatedBinding( On 2017/04/24 06:22:18, shimazu wrote: > On 2017/04/24 ...
3 years, 7 months ago (2017-04-24 06:37:39 UTC) #69
xiaofengzhang
Hi shimazu@ leon@ please help to review again, thanks. https://codereview.chromium.org/2746783002/diff/80001/content/browser/service_worker/service_worker_register_job.h File content/browser/service_worker/service_worker_register_job.h (right): https://codereview.chromium.org/2746783002/diff/80001/content/browser/service_worker/service_worker_register_job.h#newcode17 content/browser/service_worker/service_worker_register_job.h:17: ...
3 years, 7 months ago (2017-04-25 06:01:29 UTC) #73
leonhsl(Using Gerrit)
lgtm with nits. https://codereview.chromium.org/2746783002/diff/200001/content/browser/service_worker/embedded_worker_test_helper.cc File content/browser/service_worker/embedded_worker_test_helper.cc (left): https://codereview.chromium.org/2746783002/diff/200001/content/browser/service_worker/embedded_worker_test_helper.cc#oldcode665 content/browser/service_worker/embedded_worker_test_helper.cc:665: void EmbeddedWorkerTestHelper::OnMessageToWorkerStub( Now this function is ...
3 years, 7 months ago (2017-04-25 06:53:27 UTC) #76
xiaofengzhang
https://codereview.chromium.org/2746783002/diff/200001/content/browser/service_worker/embedded_worker_test_helper.cc File content/browser/service_worker/embedded_worker_test_helper.cc (left): https://codereview.chromium.org/2746783002/diff/200001/content/browser/service_worker/embedded_worker_test_helper.cc#oldcode665 content/browser/service_worker/embedded_worker_test_helper.cc:665: void EmbeddedWorkerTestHelper::OnMessageToWorkerStub( On 2017/04/25 06:53:27, leonhsl wrote: > Now ...
3 years, 7 months ago (2017-04-25 07:18:15 UTC) #77
xiaofengzhang
https://codereview.chromium.org/2746783002/diff/200001/content/browser/service_worker/service_worker_register_job.cc File content/browser/service_worker/service_worker_register_job.cc (right): https://codereview.chromium.org/2746783002/diff/200001/content/browser/service_worker/service_worker_register_job.cc#newcode50 content/browser/service_worker/service_worker_register_job.cc:50: if (!version_) On 2017/04/25 06:53:27, leonhsl wrote: > Instead ...
3 years, 7 months ago (2017-04-25 09:13:32 UTC) #82
xiaofengzhang
PTAL, thanks a lot. Hi, Tom, would you PTAL for OWNER review of mojom files? ...
3 years, 7 months ago (2017-04-26 05:10:48 UTC) #88
Tom Sepez
lgtm
3 years, 7 months ago (2017-04-26 16:18:31 UTC) #92
shimazu
Sorry for late. I was in sick leave for the last two days. https://codereview.chromium.org/2746783002/diff/280001/content/browser/service_worker/embedded_worker_test_helper.cc File ...
3 years, 7 months ago (2017-04-27 02:36:45 UTC) #95
xiaofengzhang
https://codereview.chromium.org/2746783002/diff/280001/content/browser/service_worker/embedded_worker_test_helper.cc File content/browser/service_worker/embedded_worker_test_helper.cc (right): https://codereview.chromium.org/2746783002/diff/280001/content/browser/service_worker/embedded_worker_test_helper.cc#newcode163 content/browser/service_worker/embedded_worker_test_helper.cc:163: mojom::ServiceWorkerInstallEventMethodsAssociatedPtrInfo client, On 2017/04/27 02:36:44, shimazu wrote: > Can ...
3 years, 7 months ago (2017-04-27 05:15:32 UTC) #102
xiaofengzhang
https://codereview.chromium.org/2746783002/diff/280001/content/browser/service_worker/service_worker_register_job.cc File content/browser/service_worker/service_worker_register_job.cc (right): https://codereview.chromium.org/2746783002/diff/280001/content/browser/service_worker/service_worker_register_job.cc#newcode468 content/browser/service_worker/service_worker_register_job.cc:468: mojom::ServiceWorkerInstallEventMethodsAssociatedPtrInfo ptr_info; On 2017/04/27 05:15:32, xiaofengzhang wrote: > On ...
3 years, 7 months ago (2017-04-27 05:39:27 UTC) #103
shimazu
https://codereview.chromium.org/2746783002/diff/280001/content/browser/service_worker/service_worker_register_job.cc File content/browser/service_worker/service_worker_register_job.cc (right): https://codereview.chromium.org/2746783002/diff/280001/content/browser/service_worker/service_worker_register_job.cc#newcode468 content/browser/service_worker/service_worker_register_job.cc:468: mojom::ServiceWorkerInstallEventMethodsAssociatedPtrInfo ptr_info; On 2017/04/27 05:39:27, xiaofengzhang wrote: > On ...
3 years, 7 months ago (2017-04-27 06:16:42 UTC) #104
horo
The name "event_id" is ambiguous for RegisterForeignFetchScopes() methods. I think "install_event_id" is better. https://codereview.chromium.org/2746783002/diff/280001/content/browser/service_worker/service_worker_register_job.h File ...
3 years, 7 months ago (2017-04-27 09:22:22 UTC) #105
xiaofengzhang
shimazu@ Please help to review again, thanks. https://codereview.chromium.org/2746783002/diff/280001/content/browser/service_worker/service_worker_job_unittest.cc File content/browser/service_worker/service_worker_job_unittest.cc (right): https://codereview.chromium.org/2746783002/diff/280001/content/browser/service_worker/service_worker_job_unittest.cc#newcode1479 content/browser/service_worker/service_worker_job_unittest.cc:1479: dispatched_events()->push_back(Event::Install); Delete ...
3 years, 7 months ago (2017-04-28 07:14:24 UTC) #107
xiaofengzhang
https://codereview.chromium.org/2746783002/diff/280001/content/browser/service_worker/embedded_worker_test_helper.cc File content/browser/service_worker/embedded_worker_test_helper.cc (right): https://codereview.chromium.org/2746783002/diff/280001/content/browser/service_worker/embedded_worker_test_helper.cc#newcode163 content/browser/service_worker/embedded_worker_test_helper.cc:163: mojom::ServiceWorkerInstallEventMethodsAssociatedPtrInfo client, On 2017/04/27 05:15:32, xiaofengzhang wrote: > On ...
3 years, 7 months ago (2017-04-28 08:20:17 UTC) #113
horo
lgtm. But please get lgtm from shimazu@ before submit.
3 years, 7 months ago (2017-04-28 11:20:08 UTC) #116
shimazu
lgtm, thanks a lot!:)
3 years, 7 months ago (2017-05-01 03:13:07 UTC) #117
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/2746783002/340001
3 years, 7 months ago (2017-05-02 00:59:31 UTC) #120
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/424919)
3 years, 7 months ago (2017-05-02 01:08:19 UTC) #122
xiaofengzhang
Hi haraken could you help to review this patch as the owner of third_party/WebKit/Source/web?
3 years, 7 months ago (2017-05-02 01:13:42 UTC) #124
haraken
On 2017/05/02 01:13:42, xiaofengzhang wrote: > Hi haraken > > could you help to review ...
3 years, 7 months ago (2017-05-02 01:21:38 UTC) #125
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/2746783002/340001
3 years, 7 months ago (2017-05-02 01:24:54 UTC) #127
commit-bot: I haz the power
Failed to request the patch to try. Please note that binary files are still unsupported ...
3 years, 7 months ago (2017-05-02 02:35:42 UTC) #129
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/2746783002/340001
3 years, 7 months ago (2017-05-02 03:11:43 UTC) #131
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 03:17:03 UTC) #134
Message was sent while issue was closed.
Committed patchset #11 (id:340001) as
https://chromium.googlesource.com/chromium/src/+/aeae396182b48115df4170d4e6e6...

Powered by Google App Engine
This is Rietveld 408576698