summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/message_decoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/protocol/message_decoder.h')
-rw-r--r--remoting/protocol/message_decoder.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/remoting/protocol/message_decoder.h b/remoting/protocol/message_decoder.h
index 3e0745f7..0ba8b78 100644
--- a/remoting/protocol/message_decoder.h
+++ b/remoting/protocol/message_decoder.h
@@ -35,10 +35,11 @@ class MessageDecoder {
// its bytes are consumed.
void AddData(scoped_refptr<net::IOBuffer> data, int data_size);
- // Get next message from the stream and puts it in
- // |message_buffer|. Returns false if there are no complete messages
- // yet.
- bool GetNextMessage(CompoundBuffer* message_buffer);
+ // Returns next message from the stream. Ownership of the result is
+ // passed to the caller. Returns NULL if there are no complete
+ // messages yet, otherwise returns a buffer that contains one
+ // message.
+ CompoundBuffer* GetNextMessage();
private:
// Retrieves the read payload size of the current protocol buffer via |size|.