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

Unified Diff: mojo/public/cpp/bindings/lib/control_message_handler.h

Issue 2766523002: mojo: MessageReceiver*::AcceptWithResponder() now take a unique_ptr to the responder (Closed)
Patch Set: comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/cpp/bindings/lib/control_message_handler.h
diff --git a/mojo/public/cpp/bindings/lib/control_message_handler.h b/mojo/public/cpp/bindings/lib/control_message_handler.h
index 3c385e41d9d76d77a2ad11381a2e45b57dab1a69..5d1f716ea8cf3b9879a5872ce524ff100d9abd13 100644
--- a/mojo/public/cpp/bindings/lib/control_message_handler.h
+++ b/mojo/public/cpp/bindings/lib/control_message_handler.h
@@ -27,12 +27,13 @@ class MOJO_CPP_BINDINGS_EXPORT ControlMessageHandler
// Call the following methods only if IsControlMessage() returned true.
bool Accept(Message* message) override;
- // Takes ownership of |responder|.
- bool AcceptWithResponder(Message* message,
- MessageReceiverWithStatus* responder) override;
+ bool AcceptWithResponder(
+ Message* message,
+ std::unique_ptr<MessageReceiverWithStatus> responder) override;
private:
- bool Run(Message* message, MessageReceiverWithStatus* responder);
+ bool Run(Message* message,
+ std::unique_ptr<MessageReceiverWithStatus> responder);
bool RunOrClosePipe(Message* message);
uint32_t interface_version_;
« no previous file with comments | « mojo/public/cpp/bindings/lib/associated_interface_ptr_state.h ('k') | mojo/public/cpp/bindings/lib/control_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698