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

Issue 2646853003: Mojo C++ bindings: Simplify associated interface API. (Closed)

Created:
3 years, 11 months ago by yzshen1
Modified:
3 years, 10 months ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), dcheng, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, wangjimmy, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojo C++ bindings: Simplify associated interface API. AssociatedInterfacePtrInfo/Request pair can be created in a pending state and attach to a message pipe later. AssociatedGroup will become a class used by the binding internal code. Users will no longer need to pass an AssociatedGroup argument when creating associated interfaces. BUG=682334 Review-Url: https://codereview.chromium.org/2646853003 Cr-Commit-Position: refs/heads/master@{#450494} Committed: https://chromium.googlesource.com/chromium/src/+/2859a2ac06ab5d9df6706cc45525dc4a2085051c

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : clean up & add comments #

Patch Set 7 : add tests #

Patch Set 8 : rebase #

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : . #

Patch Set 12 : . #

Patch Set 13 : merge change 2668153003 #

Patch Set 14 : ' #

Patch Set 15 : . #

Patch Set 16 : . #

Patch Set 17 : . #

Patch Set 18 : . #

Patch Set 19 : . #

Patch Set 20 : . #

Patch Set 21 : . #

Patch Set 22 : . #

Patch Set 23 : . #

Total comments: 16

Patch Set 24 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+805 lines, -430 lines) Patch
M ipc/ipc_channel_mojo.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -1 line 0 comments Download
M ipc/ipc_mojo_bootstrap.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 9 chunks +51 lines, -65 lines 0 comments Download
M mojo/public/cpp/bindings/associated_binding.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/associated_group.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +33 lines, -33 lines 0 comments Download
M mojo/public/cpp/bindings/associated_group_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +22 lines, -16 lines 0 comments Download
M mojo/public/cpp/bindings/associated_interface_ptr.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 5 chunks +14 lines, -40 lines 0 comments Download
M mojo/public/cpp/bindings/associated_interface_request.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -5 lines 0 comments Download
M mojo/public/cpp/bindings/interface_endpoint_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 5 chunks +19 lines, -12 lines 0 comments Download
M mojo/public/cpp/bindings/interface_request.h View 1 2 3 4 1 chunk +1 line, -4 lines 0 comments Download
M mojo/public/cpp/bindings/lib/associated_binding.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -6 lines 0 comments Download
M mojo/public/cpp/bindings/lib/associated_group.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +15 lines, -16 lines 0 comments Download
M mojo/public/cpp/bindings/lib/associated_group_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +7 lines, -10 lines 0 comments Download
M mojo/public/cpp/bindings/lib/associated_interface_ptr_state.h View 1 2 3 4 5 6 7 14 15 16 17 18 19 20 21 3 chunks +3 lines, -12 lines 0 comments Download
M mojo/public/cpp/bindings/lib/binding_state.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M mojo/public/cpp/bindings/lib/handle_interface_serialization.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/lib/interface_endpoint_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 5 chunks +73 lines, -20 lines 0 comments Download
M mojo/public/cpp/bindings/lib/interface_ptr_state.h View 1 2 3 4 5 6 7 14 15 16 17 18 19 20 21 3 chunks +3 lines, -5 lines 0 comments Download
M mojo/public/cpp/bindings/lib/may_auto_lock.h View 2 chunks +5 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/lib/message.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -4 lines 0 comments Download
M mojo/public/cpp/bindings/lib/multiplex_router.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -5 lines 0 comments Download
M mojo/public/cpp/bindings/lib/multiplex_router.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 5 chunks +37 lines, -52 lines 0 comments Download
M mojo/public/cpp/bindings/lib/pipe_control_message_handler.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -5 lines 0 comments Download
M mojo/public/cpp/bindings/lib/pipe_control_message_proxy.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -14 lines 0 comments Download
M mojo/public/cpp/bindings/lib/scoped_interface_endpoint_handle.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +336 lines, -38 lines 0 comments Download
M mojo/public/cpp/bindings/pipe_control_message_handler_delegate.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/pipe_control_message_proxy.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +65 lines, -20 lines 0 comments Download
M mojo/public/cpp/bindings/tests/associated_interface_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +57 lines, -8 lines 0 comments Download
M mojo/public/cpp/bindings/tests/multiplex_router_unittest.cc View 1 2 3 1 chunk +4 lines, -11 lines 0 comments Download
M mojo/public/cpp/bindings/thread_safe_interface_ptr.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 8 chunks +47 lines, -8 lines 0 comments Download
M mojo/public/interfaces/bindings/pipe_control_messages.mojom View 1 3 chunks +1 line, -12 lines 0 comments Download

Messages

Total messages: 75 (63 generated)
yzshen1
Hi, Ken and Daniel. Would you please take a look? Ken: everything Daniel: security review ...
3 years, 11 months ago (2017-01-24 23:09:35 UTC) #9
dcheng
ochang@ has volunteered to help review this. I'm generally happy about removals from mojom files, ...
3 years, 10 months ago (2017-01-31 02:02:39 UTC) #23
yzshen1
On 2017/01/31 02:02:39, dcheng wrote: > ochang@ has volunteered to help review this. I'm generally ...
3 years, 10 months ago (2017-01-31 18:32:40 UTC) #24
yzshen1
On 2017/01/31 18:32:40, yzshen1 wrote: > On 2017/01/31 02:02:39, dcheng wrote: > > ochang@ has ...
3 years, 10 months ago (2017-02-10 22:31:36 UTC) #49
yzshen1
Hi, Ken. PTAL. I have switched from AssociatedGroupControllerGetter to AssociatedGroup::GetController(). Thanks!
3 years, 10 months ago (2017-02-13 22:48:51 UTC) #58
Ken Rockot(use gerrit already)
LGTM! just some nits and clarifying questions https://codereview.chromium.org/2646853003/diff/440001/mojo/public/cpp/bindings/associated_group_controller.h File mojo/public/cpp/bindings/associated_group_controller.h (right): https://codereview.chromium.org/2646853003/diff/440001/mojo/public/cpp/bindings/associated_group_controller.h#newcode29 mojo/public/cpp/bindings/associated_group_controller.h:29: // Associates ...
3 years, 10 months ago (2017-02-14 07:39:27 UTC) #61
yzshen1
Thanks! PTAL https://codereview.chromium.org/2646853003/diff/440001/mojo/public/cpp/bindings/associated_group_controller.h File mojo/public/cpp/bindings/associated_group_controller.h (right): https://codereview.chromium.org/2646853003/diff/440001/mojo/public/cpp/bindings/associated_group_controller.h#newcode29 mojo/public/cpp/bindings/associated_group_controller.h:29: // Associates an interface with the message ...
3 years, 10 months ago (2017-02-14 19:10:27 UTC) #63
Oliver Chang
lgtm, but I'm afraid it's been a while since I've looked at Mojo code so ...
3 years, 10 months ago (2017-02-14 19:50:05 UTC) #66
yzshen1
On 2017/02/14 19:50:05, Oliver Chang wrote: > lgtm, but I'm afraid it's been a while ...
3 years, 10 months ago (2017-02-14 21:08:57 UTC) #69
Ken Rockot(use gerrit already)
Thanks, all LGTM!
3 years, 10 months ago (2017-02-14 22:04:46 UTC) #70
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/2646853003/460001
3 years, 10 months ago (2017-02-14 22:16:41 UTC) #72
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 22:25:06 UTC) #75
Message was sent while issue was closed.
Committed patchset #24 (id:460001) as
https://chromium.googlesource.com/chromium/src/+/2859a2ac06ab5d9df6706cc45525...

Powered by Google App Engine
This is Rietveld 408576698