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; |
}; |