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

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

Issue 54743003: Mojo: bindings connector (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Extract SimpleBindingsSupport Created 7 years, 1 month 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/bindings/lib/message.h
diff --git a/mojo/public/bindings/lib/message.h b/mojo/public/bindings/lib/message.h
index 38fdafc507608e3c088d4b20eeb35dbb4b39e196..15759a018c4f8e2ad1ebc0dbe49a9f564751c080 100644
--- a/mojo/public/bindings/lib/message.h
+++ b/mojo/public/bindings/lib/message.h
@@ -31,6 +31,8 @@ struct Message {
Message();
~Message();
+ void Swap(Message* other);
+
MessageData* data; // Heap-allocated.
std::vector<Handle> handles;
};
viettrungluu 2013/11/05 22:45:29 Probably we want to make Message noncopyable, righ
@@ -38,7 +40,9 @@ struct Message {
class MessageReceiver {
public:
// The receiver may mutate the given message or take ownership of its
- // |message->data| member by setting it to NULL.
+ // |message->data| member by setting it to NULL. Returns true if the message
+ // was accepted and false otherwise, indicating that the message was invalid
+ // or malformed.
virtual bool Accept(Message* message) = 0;
};

Powered by Google App Engine
This is Rietveld 408576698