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

Issue 2766523002: mojo: MessageReceiver*::AcceptWithResponder() now take a unique_ptr to the responder (Closed)

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

Description

mojo: MessageReceiver*::AcceptWithResponder() now take a unique_ptr to the responder Previously these functions took raw pointers to MessageReceivers and took ownership on success or left ownership with the caller if they failed. Now they take unique_ptrs (always assuming ownership) to make the interface clearer and safer. BUG=703489 Review-Url: https://codereview.chromium.org/2766523002 Cr-Commit-Position: refs/heads/master@{#458684} Committed: https://chromium.googlesource.com/chromium/src/+/25f0f5f955e5d61d055dbe69a791db80541ef8ee

Patch Set 1 #

Total comments: 3

Patch Set 2 : fix mac compile, use ignore_result more #

Total comments: 10

Patch Set 3 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -124 lines) Patch
M mojo/public/cpp/bindings/interface_endpoint_client.h View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/associated_interface_ptr_state.h View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/control_message_handler.h View 1 chunk +5 lines, -4 lines 0 comments Download
M mojo/public/cpp/bindings/lib/control_message_handler.cc View 1 3 chunks +7 lines, -7 lines 0 comments Download
M mojo/public/cpp/bindings/lib/control_message_proxy.cc View 1 2 chunks +5 lines, -5 lines 0 comments Download
M mojo/public/cpp/bindings/lib/interface_endpoint_client.cc View 4 chunks +12 lines, -15 lines 0 comments Download
M mojo/public/cpp/bindings/lib/interface_ptr_state.h View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/pipe_control_message_proxy.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M mojo/public/cpp/bindings/message.h View 1 2 2 chunks +4 lines, -17 lines 0 comments Download
M mojo/public/cpp/bindings/tests/bindings_perftest.cc View 1 2 chunks +6 lines, -4 lines 0 comments Download
M mojo/public/cpp/bindings/tests/multiplex_router_unittest.cc View 8 chunks +16 lines, -14 lines 0 comments Download
M mojo/public/cpp/bindings/tests/router_test_util.h View 3 chunks +7 lines, -6 lines 0 comments Download
M mojo/public/cpp/bindings/tests/router_test_util.cc View 3 chunks +6 lines, -10 lines 0 comments Download
M mojo/public/cpp/bindings/tests/sample_service_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/thread_safe_interface_ptr.h View 1 chunk +5 lines, -4 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl View 1 2 8 chunks +24 lines, -25 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/interface_stub_declaration.tmpl View 1 2 2 chunks +6 lines, -5 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (14 generated)
watk
https://codereview.chromium.org/2766523002/diff/1/mojo/public/cpp/bindings/message.h File mojo/public/cpp/bindings/message.h (right): https://codereview.chromium.org/2766523002/diff/1/mojo/public/cpp/bindings/message.h#newcode189 mojo/public/cpp/bindings/message.h:189: // or upon its own destruction. Do you think ...
3 years, 9 months ago (2017-03-21 04:09:38 UTC) #9
yzshen1
LGTM with a few nits https://codereview.chromium.org/2766523002/diff/1/mojo/public/cpp/bindings/message.h File mojo/public/cpp/bindings/message.h (right): https://codereview.chromium.org/2766523002/diff/1/mojo/public/cpp/bindings/message.h#newcode189 mojo/public/cpp/bindings/message.h:189: // or upon its ...
3 years, 9 months ago (2017-03-21 16:10:00 UTC) #12
watk
Thanks! CQing https://codereview.chromium.org/2766523002/diff/1/mojo/public/cpp/bindings/message.h File mojo/public/cpp/bindings/message.h (right): https://codereview.chromium.org/2766523002/diff/1/mojo/public/cpp/bindings/message.h#newcode189 mojo/public/cpp/bindings/message.h:189: // or upon its own destruction. On ...
3 years, 9 months ago (2017-03-22 07:09:15 UTC) #13
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/2766523002/40001
3 years, 9 months ago (2017-03-22 07:10:04 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-03-22 08:27:44 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/25f0f5f955e5d61d055dbe69a791...

Powered by Google App Engine
This is Rietveld 408576698