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

Issue 1455063004: Mojo C++ bindings: introduce MultiplexRouter and related classes. (Closed)

Created:
5 years, 1 month ago by yzshen1
Modified:
5 years, 1 month ago
Reviewers:
sky
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojo C++ bindings: introduce MultiplexRouter and related classes. MultiplexRouter supports routing messages for multiple interfaces over a single message pipe. It supports multi-thread access as well. This is part of the work to support associated interfaces. BUG=546067 TEST=Newly added tests Committed: https://crrev.com/5176a0cd84b342d3d9abcb6ec9060f05a1eaf57c Cr-Commit-Position: refs/heads/master@{#360903}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : fix mac compilation #

Total comments: 49

Patch Set 4 : changes according to review comments #

Total comments: 7

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1856 lines, -151 lines) Patch
M mojo/public/cpp/bindings/BUILD.gn View 3 chunks +6 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/lib/connector.h View 1 2 3 4 7 chunks +41 lines, -8 lines 0 comments Download
M mojo/public/cpp/bindings/lib/connector.cc View 1 2 3 4 10 chunks +64 lines, -9 lines 0 comments Download
A mojo/public/cpp/bindings/lib/interface_endpoint_client.h View 1 2 3 1 chunk +120 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/lib/interface_endpoint_client.cc View 1 2 3 1 chunk +218 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/lib/multiplex_router.h View 1 2 3 4 5 1 chunk +207 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/lib/multiplex_router.cc View 1 2 3 4 5 1 chunk +519 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/lib/router.cc View 3 chunks +5 lines, -1 line 0 comments Download
A mojo/public/cpp/bindings/lib/scoped_interface_endpoint_handle.h View 1 chunk +63 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/lib/scoped_interface_endpoint_handle.cc View 1 2 3 1 chunk +75 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/BUILD.gn View 1 chunk +3 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/connector_unittest.cc View 11 chunks +44 lines, -22 lines 0 comments Download
A mojo/public/cpp/bindings/tests/multiplex_router_unittest.cc View 1 chunk +297 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/tests/router_test_util.h View 1 chunk +81 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/tests/router_test_util.cc View 1 chunk +100 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/router_unittest.cc View 2 chunks +1 line, -110 lines 0 comments Download
M mojo/public/cpp/bindings/tests/validation_unittest.cc View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/mojo/mojo_edk_tests.gyp View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/mojo/mojo_public.gyp View 3 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
yzshen1
Hi, Scott. Would you please take a look? Sorry it is a fairly big CL. ...
5 years, 1 month ago (2015-11-18 23:17:14 UTC) #2
sky
https://codereview.chromium.org/1455063004/diff/40001/chrome/BUILD.gn File chrome/BUILD.gn (right): https://codereview.chromium.org/1455063004/diff/40001/chrome/BUILD.gn#newcode6 chrome/BUILD.gn:6: import("//build/config/compiler/compiler.gni") The fix landed, so you should be able ...
5 years, 1 month ago (2015-11-19 17:16:27 UTC) #3
yzshen1
Thanks, Scott! Please take another look. https://codereview.chromium.org/1455063004/diff/40001/chrome/BUILD.gn File chrome/BUILD.gn (right): https://codereview.chromium.org/1455063004/diff/40001/chrome/BUILD.gn#newcode6 chrome/BUILD.gn:6: import("//build/config/compiler/compiler.gni") On 2015/11/19 ...
5 years, 1 month ago (2015-11-19 22:00:41 UTC) #4
sky
https://codereview.chromium.org/1455063004/diff/40001/mojo/public/cpp/bindings/lib/connector.h File mojo/public/cpp/bindings/lib/connector.h (right): https://codereview.chromium.org/1455063004/diff/40001/mojo/public/cpp/bindings/lib/connector.h#newcode34 mojo/public/cpp/bindings/lib/connector.h:34: enum SendingThreadSaftyType { SINGLE_THREADED_SEND, MULTI_THREADED_SEND }; On 2015/11/19 22:00:40, ...
5 years, 1 month ago (2015-11-20 01:00:19 UTC) #5
yzshen1
Thank you Scott! :) https://codereview.chromium.org/1455063004/diff/40001/mojo/public/cpp/bindings/lib/connector.h File mojo/public/cpp/bindings/lib/connector.h (right): https://codereview.chromium.org/1455063004/diff/40001/mojo/public/cpp/bindings/lib/connector.h#newcode34 mojo/public/cpp/bindings/lib/connector.h:34: enum SendingThreadSaftyType { SINGLE_THREADED_SEND, MULTI_THREADED_SEND ...
5 years, 1 month ago (2015-11-20 17:01:00 UTC) #6
sky
Go with what you have, LGTM
5 years, 1 month ago (2015-11-20 18:40:07 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1455063004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1455063004/100001
5 years, 1 month ago (2015-11-20 18:44:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1455063004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1455063004/120001
5 years, 1 month ago (2015-11-20 18:57:30 UTC) #13
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 1 month ago (2015-11-20 20:21:42 UTC) #14
commit-bot: I haz the power
5 years, 1 month ago (2015-11-20 20:22:38 UTC) #15
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/5176a0cd84b342d3d9abcb6ec9060f05a1eaf57c
Cr-Commit-Position: refs/heads/master@{#360903}

Powered by Google App Engine
This is Rietveld 408576698