| Index: remoting/protocol/message_decoder.h
|
| diff --git a/remoting/protocol/message_decoder.h b/remoting/protocol/message_decoder.h
|
| index 3e0745f73f9a70a4d017f7797c65d5d7be248601..0ba8b7822978eeb5e063ebd60de354699454b034 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|.
|
|
|