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

Unified Diff: remoting/protocol/message_reader.h

Issue 10919259: Fix MessageReader not to invoke message callback from done callback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | « no previous file | remoting/protocol/message_reader.cc » ('j') | remoting/protocol/message_reader.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/message_reader.h
diff --git a/remoting/protocol/message_reader.h b/remoting/protocol/message_reader.h
index efba5e1be02599670dd4d044cbbc72d3b9db73d6..edd29ecc53e692454514a5ec13df3563e66e132f 100644
--- a/remoting/protocol/message_reader.h
+++ b/remoting/protocol/message_reader.h
@@ -46,10 +46,11 @@ class MessageReader : public base::NonThreadSafe {
void Init(net::Socket* socket, const MessageReceivedCallback& callback);
private:
- void DoRead();
+ void DoRead(bool in_callback);
void OnRead(int result);
- void HandleReadResult(int result);
- void OnDataReceived(net::IOBuffer* data, int data_size);
+ void HandleReadResult(int result, bool in_callback);
+ void OnDataReceived(net::IOBuffer* data, int data_size, bool in_callback);
+ void RunCallback(scoped_ptr<CompoundBuffer> message);
void OnMessageDone();
net::Socket* socket_;
« no previous file with comments | « no previous file | remoting/protocol/message_reader.cc » ('j') | remoting/protocol/message_reader.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698