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

Unified Diff: mojo/public/cpp/bindings/message.h

Issue 1713203002: Mojo C++ bindings: support sync methods - part 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/message.h
diff --git a/mojo/public/cpp/bindings/message.h b/mojo/public/cpp/bindings/message.h
index f58b2e0ca0a2ce618f4f40e714bebf39a3c7aa11..9781a13ccac79d0e0d5897c45befddb2b992414d 100644
--- a/mojo/public/cpp/bindings/message.h
+++ b/mojo/public/cpp/bindings/message.h
@@ -122,6 +122,7 @@ class MessageReceiverWithResponder : public MessageReceiver {
// |responder| and will delete it after calling |responder->Accept| or upon
// its own destruction.
//
+ // TODO(yzshen): consider changing |responder| to scoped_ptr<MessageReceiver>.
virtual bool AcceptWithResponder(Message* message, MessageReceiver* responder)
MOJO_WARN_UNUSED_RESULT = 0;
};
@@ -154,6 +155,7 @@ class MessageReceiverWithResponderStatus : public MessageReceiver {
// |responder| and will delete it after calling |responder->Accept| or upon
// its own destruction.
//
+ // TODO(yzshen): consider changing |responder| to scoped_ptr<MessageReceiver>.
virtual bool AcceptWithResponder(Message* message,
MessageReceiverWithStatus* responder)
MOJO_WARN_UNUSED_RESULT = 0;
« no previous file with comments | « mojo/public/cpp/bindings/lib/sync_handle_watcher.cc ('k') | mojo/public/cpp/bindings/tests/router_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698