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

Unified Diff: remoting/protocol/message_decoder.cc

Issue 6277003: Simplified MessageReader and MessageDecoder classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 11 months 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
« no previous file with comments | « remoting/protocol/message_decoder.h ('k') | remoting/protocol/message_decoder_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/message_decoder.cc
diff --git a/remoting/protocol/message_decoder.cc b/remoting/protocol/message_decoder.cc
index 09f331a9951c04824662a9b296ecbac51ec565d6..b460b4d463a43308beeb93009e523827ee90b4a5 100644
--- a/remoting/protocol/message_decoder.cc
+++ b/remoting/protocol/message_decoder.cc
@@ -20,12 +20,12 @@ MessageDecoder::MessageDecoder()
MessageDecoder::~MessageDecoder() {}
-void MessageDecoder::AddBuffer(scoped_refptr<net::IOBuffer> data,
- int data_size) {
+void MessageDecoder::AddData(scoped_refptr<net::IOBuffer> data,
+ int data_size) {
buffer_.Append(data, data_size);
}
-bool MessageDecoder::GetNextMessageData(CompoundBuffer* message_buffer) {
+bool MessageDecoder::GetNextMessage(CompoundBuffer* message_buffer) {
// Determine the payload size. If we already know it then skip this part.
// We may not have enough data to determine the payload size so use a
// utility function to find out.
« no previous file with comments | « remoting/protocol/message_decoder.h ('k') | remoting/protocol/message_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698