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

Issue 1110103003: Initial implementation of stashed message ports, content side (Closed)

Created:
5 years, 7 months ago by Marijn Kruisselbrink
Modified:
5 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, horo+watch_chromium.org, jam, jsbell+serviceworker_chromium.org, kinuko+serviceworker, kinuko+watch, michaeln, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nhiroki, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Initial implementation of stashed message ports, content side This is part of a series of patches to implement an initial version of a mechanism for a MessagePort to outlive a service worker as described in https://github.com/mkruisselbrink/navigator-connect/blob/gh-pages/docs/api-idea.md#persisted-messageports [1/3] https://codereview.chromium.org/1008533005/, blink side implementation [2/3] this patch, content side implementation [3/3] https://codereview.chromium.org/1063533002/, layout tests BUG=426458, 483108 Committed: https://crrev.com/9e86f80ad8421b1a34894ea72fb8af4ebe88a0c2 Cr-Commit-Position: refs/heads/master@{#330766}

Patch Set 1 #

Total comments: 12

Patch Set 2 : address comments #

Total comments: 19

Patch Set 3 : address more comments #

Total comments: 2

Patch Set 4 : minor formatting issues #

Total comments: 3

Patch Set 5 : nicer dchecks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+556 lines, -4 lines) Patch
M content/browser/message_port_service.h View 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/message_port_service.cc View 2 chunks +20 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.h View 1 2 3 chunks +13 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 2 6 chunks +70 lines, -0 lines 0 comments Download
A content/browser/service_worker/stashed_port_manager.h View 1 2 1 chunk +102 lines, -0 lines 0 comments Download
A content/browser/service_worker/stashed_port_manager.cc View 1 2 3 4 1 chunk +240 lines, -0 lines 0 comments Download
M content/browser/storage_partition_impl.h View 1 4 chunks +5 lines, -1 line 0 comments Download
M content/browser/storage_partition_impl.cc View 1 6 chunks +15 lines, -2 lines 0 comments Download
M content/child/webmessageportchannel_impl.h View 2 chunks +3 lines, -0 lines 0 comments Download
M content/child/webmessageportchannel_impl.cc View 3 chunks +5 lines, -1 line 0 comments Download
M content/common/service_worker/service_worker_messages.h View 2 chunks +12 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/browser/message_port_delegate.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_context_client.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/service_worker/embedded_worker_context_client.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M content/renderer/service_worker/service_worker_script_context.h View 2 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/service_worker/service_worker_script_context.cc View 1 2 3 4 4 chunks +42 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (11 generated)
Marijn Kruisselbrink
5 years, 7 months ago (2015-04-30 23:05:54 UTC) #4
Marijn Kruisselbrink
5 years, 7 months ago (2015-05-05 21:47:17 UTC) #6
scheib
https://codereview.chromium.org/1110103003/diff/40001/content/browser/message_port_service.cc File content/browser/message_port_service.cc (right): https://codereview.chromium.org/1110103003/diff/40001/content/browser/message_port_service.cc#newcode82 content/browser/message_port_service.cc:82: NOTREACHED(); Handle it or not, but not both. Looks ...
5 years, 7 months ago (2015-05-06 22:19:46 UTC) #7
Marijn Kruisselbrink
https://codereview.chromium.org/1110103003/diff/40001/content/browser/message_port_service.cc File content/browser/message_port_service.cc (right): https://codereview.chromium.org/1110103003/diff/40001/content/browser/message_port_service.cc#newcode82 content/browser/message_port_service.cc:82: NOTREACHED(); On 2015/05/06 22:19:45, scheib wrote: > Handle it ...
5 years, 7 months ago (2015-05-12 06:57:33 UTC) #9
scheib
LGTM
5 years, 7 months ago (2015-05-12 18:17:05 UTC) #10
Marijn Kruisselbrink
+falken for serviceworker OWNERS
5 years, 7 months ago (2015-05-12 23:48:13 UTC) #12
falken
lgtm, though as nhiroki reviewed the blink-side patch he might want to take a look ...
5 years, 7 months ago (2015-05-15 06:08:02 UTC) #14
kinuko
https://codereview.chromium.org/1110103003/diff/80001/content/browser/service_worker/stashed_port_manager.cc File content/browser/service_worker/stashed_port_manager.cc (right): https://codereview.chromium.org/1110103003/diff/80001/content/browser/service_worker/stashed_port_manager.cc#newcode161 content/browser/service_worker/stashed_port_manager.cc:161: observing_service_workers_.erase(service_worker); Is it guaranteed that OnRunningStateChanged is always fired ...
5 years, 7 months ago (2015-05-15 06:59:18 UTC) #16
nhiroki
LGTM provided kinuko@'s comment on "OnRunningStateChanged" is resolved. https://codereview.chromium.org/1110103003/diff/80001/content/browser/message_port_service.cc File content/browser/message_port_service.cc (right): https://codereview.chromium.org/1110103003/diff/80001/content/browser/message_port_service.cc#newcode84 content/browser/message_port_service.cc:84: } ...
5 years, 7 months ago (2015-05-18 04:45:57 UTC) #17
Marijn Kruisselbrink
https://codereview.chromium.org/1110103003/diff/80001/content/browser/message_port_service.cc File content/browser/message_port_service.cc (right): https://codereview.chromium.org/1110103003/diff/80001/content/browser/message_port_service.cc#newcode84 content/browser/message_port_service.cc:84: } On 2015/05/18 at 04:45:57, nhiroki wrote: > Can ...
5 years, 7 months ago (2015-05-18 22:19:36 UTC) #18
kinuko
https://codereview.chromium.org/1110103003/diff/80001/content/browser/service_worker/stashed_port_manager.cc File content/browser/service_worker/stashed_port_manager.cc (right): https://codereview.chromium.org/1110103003/diff/80001/content/browser/service_worker/stashed_port_manager.cc#newcode34 content/browser/service_worker/stashed_port_manager.cc:34: } nit: please have one empty line between methods ...
5 years, 7 months ago (2015-05-19 09:01:46 UTC) #19
Marijn Kruisselbrink
https://codereview.chromium.org/1110103003/diff/80001/content/browser/service_worker/stashed_port_manager.cc File content/browser/service_worker/stashed_port_manager.cc (right): https://codereview.chromium.org/1110103003/diff/80001/content/browser/service_worker/stashed_port_manager.cc#newcode34 content/browser/service_worker/stashed_port_manager.cc:34: } On 2015/05/19 09:01:45, kinuko wrote: > nit: please ...
5 years, 7 months ago (2015-05-19 17:40:19 UTC) #20
Marijn Kruisselbrink
+avi for content/ OWNERS (in particular the non service_worker bits) +tsepez for IPC OWNERS
5 years, 7 months ago (2015-05-19 21:00:17 UTC) #22
Tom Sepez
Messages themselves are fine, but my concern is whether a compromised service worker (akin to ...
5 years, 7 months ago (2015-05-19 21:46:52 UTC) #23
Marijn Kruisselbrink
On 2015/05/19 at 21:46:52, tsepez wrote: > Messages themselves are fine, but my concern is ...
5 years, 7 months ago (2015-05-19 22:01:41 UTC) #24
Tom Sepez
On 2015/05/19 22:01:41, Marijn Kruisselbrink wrote: > On 2015/05/19 at 21:46:52, tsepez wrote: > > ...
5 years, 7 months ago (2015-05-19 22:12:05 UTC) #25
Avi (use Gerrit)
LGTM with DCHECK nits. Lots of your DCHECKs, if they failed, would log no relevant ...
5 years, 7 months ago (2015-05-20 03:02:10 UTC) #26
kinuko
On 2015/05/19 17:40:19, Marijn Kruisselbrink wrote: > > > > Is it guaranteed that OnRunningStateChanged ...
5 years, 7 months ago (2015-05-20 14:34:32 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1110103003/140001
5 years, 7 months ago (2015-05-20 17:09:26 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:140001)
5 years, 7 months ago (2015-05-20 17:51:52 UTC) #31
commit-bot: I haz the power
5 years, 7 months ago (2015-05-20 17:52:29 UTC) #32
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/9e86f80ad8421b1a34894ea72fb8af4ebe88a0c2
Cr-Commit-Position: refs/heads/master@{#330766}

Powered by Google App Engine
This is Rietveld 408576698