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

Issue 1192713004: Update client side navigator.connect API to use ServicePortCollection [2/3] (Closed)

Created:
5 years, 6 months ago by Marijn Kruisselbrink
Modified:
5 years, 5 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, bsittler, chasej, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, jam, nasko+codewatch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update client side navigator.connect API to use ServicePortCollection [2/3] This is part of a series of patches to update the client side API of what was formerly known as navigator.connect to follow the new spec based on navigator.services and a new ServicePort type. This patch updates the content side code to use mojo for most of its IPC, although still relying somewhat on MessagePort since the existing service side code uses MessagePort concepts. A future patch series will also adjust the service side API to use ServicePort and get rid of the dependency on MessagePort. [1/3] https://codereview.chromium.org/1191393003 Blink side changes [2/3] https://codereview.chromium.org/1192713004 This patch [3/3] https://codereview.chromium.org/1198653004/ Cleanup and removing old code paths on the blink side and in tests. BUG=426458 Committed: https://crrev.com/d4ff9b576f5a9c1a0d3352db498fe222b69725cb Cr-Commit-Position: refs/heads/master@{#336636}

Patch Set 1 : #

Patch Set 2 : use mojo for all ServicePort related IPC #

Total comments: 10

Patch Set 3 : address comments #

Patch Set 4 : rebase #

Patch Set 5 : hopefully fix win x64 compile #

Patch Set 6 : fix windows SendMessage annoyance #

Total comments: 7

Patch Set 7 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+699 lines, -472 lines) Patch
M content/browser/navigator_connect/navigator_connect_context_impl.h View 1 2 3 4 5 2 chunks +39 lines, -11 lines 0 comments Download
M content/browser/navigator_connect/navigator_connect_context_impl.cc View 3 chunks +63 lines, -24 lines 0 comments Download
D content/browser/navigator_connect/navigator_connect_dispatcher_host.h View 1 chunk +0 lines, -61 lines 0 comments Download
D content/browser/navigator_connect/navigator_connect_dispatcher_host.cc View 1 chunk +0 lines, -63 lines 0 comments Download
A content/browser/navigator_connect/service_port_service_impl.h View 1 1 chunk +82 lines, -0 lines 0 comments Download
A content/browser/navigator_connect/service_port_service_impl.cc View 1 2 1 chunk +131 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 3 chunks +6 lines, -4 lines 0 comments Download
M content/child/blink_platform_impl.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/child/blink_platform_impl.cc View 1 2 3 4 5 6 2 chunks +4 lines, -8 lines 0 comments Download
M content/child/child_thread_impl.h View 1 2 3 4 5 6 2 chunks +0 lines, -3 lines 0 comments Download
M content/child/child_thread_impl.cc View 1 2 3 4 5 6 3 chunks +0 lines, -4 lines 0 comments Download
D content/child/navigator_connect/navigator_connect_dispatcher.h View 1 chunk +0 lines, -32 lines 0 comments Download
D content/child/navigator_connect/navigator_connect_dispatcher.cc View 1 chunk +0 lines, -36 lines 0 comments Download
D content/child/navigator_connect/navigator_connect_provider.h View 1 chunk +0 lines, -80 lines 0 comments Download
D content/child/navigator_connect/navigator_connect_provider.cc View 1 chunk +0 lines, -104 lines 0 comments Download
A content/child/navigator_connect/service_port_provider.h View 1 2 1 chunk +97 lines, -0 lines 0 comments Download
A content/child/navigator_connect/service_port_provider.cc View 1 2 1 chunk +130 lines, -0 lines 0 comments Download
M content/child/webmessageportchannel_impl.h View 1 1 chunk +9 lines, -0 lines 0 comments Download
M content/child/webmessageportchannel_impl.cc View 1 1 chunk +26 lines, -0 lines 0 comments Download
M content/common/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/common/content_message_generator.h View 1 chunk +0 lines, -1 line 0 comments Download
D content/common/navigator_connect_messages.h View 1 chunk +0 lines, -32 lines 0 comments Download
A content/common/service_port_service.mojom View 1 2 3 4 5 6 1 chunk +32 lines, -0 lines 0 comments Download
A content/common/service_port_type_converters.h View 1 chunk +31 lines, -0 lines 0 comments Download
A content/common/service_port_type_converters.cc View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 chunk +6 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M content/content_child.gypi View 1 chunk +2 lines, -4 lines 0 comments Download
M content/content_common.gypi View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M content/content_common_mojo_bindings.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M ipc/ipc_message_start.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 26 (11 generated)
Marijn Kruisselbrink
5 years, 6 months ago (2015-06-22 17:48:22 UTC) #5
scheib
https://codereview.chromium.org/1192713004/diff/80001/content/browser/navigator_connect/service_port_service_impl.cc File content/browser/navigator_connect/service_port_service_impl.cc (right): https://codereview.chromium.org/1192713004/diff/80001/content/browser/navigator_connect/service_port_service_impl.cc#newcode98 content/browser/navigator_connect/service_port_service_impl.cc:98: int32_t port_id, port_id should somewhere be verified or by ...
5 years, 6 months ago (2015-06-24 05:20:06 UTC) #6
mahat
i need help
5 years, 6 months ago (2015-06-24 05:26:37 UTC) #8
Marijn Kruisselbrink
https://codereview.chromium.org/1192713004/diff/80001/content/browser/navigator_connect/service_port_service_impl.cc File content/browser/navigator_connect/service_port_service_impl.cc (right): https://codereview.chromium.org/1192713004/diff/80001/content/browser/navigator_connect/service_port_service_impl.cc#newcode98 content/browser/navigator_connect/service_port_service_impl.cc:98: int32_t port_id, On 2015/06/24 at 05:20:06, scheib wrote: > ...
5 years, 6 months ago (2015-06-24 17:33:54 UTC) #9
scheib
LGTM +tsepez, new .mojom file. IIRC chromium mojo design docs called for OWNERS per-file for ...
5 years, 6 months ago (2015-06-24 23:06:11 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1192713004/100001
5 years, 6 months ago (2015-06-25 09:01:47 UTC) #13
commit-bot: I haz the power
Dry run: Exceeded global retry quota
5 years, 6 months ago (2015-06-25 09:25:20 UTC) #15
Marijn Kruisselbrink
tsepez: could you take a look for IPC/mojo OWNERS (you're the only OWNER for mojom ...
5 years, 6 months ago (2015-06-25 16:56:36 UTC) #17
Avi (use Gerrit)
lgtm stampity stamp
5 years, 6 months ago (2015-06-25 18:21:42 UTC) #18
Tom Sepez
https://codereview.chromium.org/1192713004/diff/160001/content/common/service_port_service.mojom File content/common/service_port_service.mojom (right): https://codereview.chromium.org/1192713004/diff/160001/content/common/service_port_service.mojom#newcode23 content/common/service_port_service.mojom:23: PostMessage(int32 port_id, string message, array<MojoTransferredMessagePort> ports); nit: 80 cols. ...
5 years, 5 months ago (2015-06-29 18:31:19 UTC) #19
Marijn Kruisselbrink
https://codereview.chromium.org/1192713004/diff/160001/content/common/service_port_service.mojom File content/common/service_port_service.mojom (right): https://codereview.chromium.org/1192713004/diff/160001/content/common/service_port_service.mojom#newcode23 content/common/service_port_service.mojom:23: PostMessage(int32 port_id, string message, array<MojoTransferredMessagePort> ports); On 2015/06/29 at ...
5 years, 5 months ago (2015-06-29 19:33:39 UTC) #20
Tom Sepez
> Maybe that decision was wrong and it would be cleaner to have all attributes ...
5 years, 5 months ago (2015-06-29 19:37:35 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1192713004/180001
5 years, 5 months ago (2015-06-29 20:29:06 UTC) #24
commit-bot: I haz the power
Committed patchset #7 (id:180001)
5 years, 5 months ago (2015-06-29 21:02:32 UTC) #25
commit-bot: I haz the power
5 years, 5 months ago (2015-06-29 21:03:33 UTC) #26
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/d4ff9b576f5a9c1a0d3352db498fe222b69725cb
Cr-Commit-Position: refs/heads/master@{#336636}

Powered by Google App Engine
This is Rietveld 408576698