Index: remoting/protocol/message_decoder.h |
diff --git a/remoting/protocol/message_decoder.h b/remoting/protocol/message_decoder.h |
index fc42871ddee5dacc6bc5477509f35b002fc324d5..049d1f4caa8fcfed27db854f5dabea05fdf1869b 100644 |
--- a/remoting/protocol/message_decoder.h |
+++ b/remoting/protocol/message_decoder.h |
@@ -35,6 +35,8 @@ class MessageDecoder { |
MessageDecoder(); |
virtual ~MessageDecoder(); |
+ bool is_buffer_empty() { return buffer_.total_bytes() == 0; } |
Wez
2015/01/21 01:35:40
Needs a comment to clarify the difference between
Sergey Ulanov
2015/01/29 01:33:29
Done.
|
+ |
// Add next chunk of data. MessageDecoder retains |data| until all |
// its bytes are consumed. |
void AddData(scoped_refptr<net::IOBuffer> data, int data_size); |