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

Unified Diff: remoting/protocol/fake_session.h

Issue 6271004: Changed MessageReader so that it doesn't read from the socket if there are (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: proper handling of empty messages 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
Index: remoting/protocol/fake_session.h
diff --git a/remoting/protocol/fake_session.h b/remoting/protocol/fake_session.h
index 62818e40cdb8d79fab5c32a05a12fd280211c8a5..062d5dda2cb579560f935624352efc7a70466239 100644
--- a/remoting/protocol/fake_session.h
+++ b/remoting/protocol/fake_session.h
@@ -29,8 +29,9 @@ class FakeSocket : public net::Socket {
const std::string& written_data() { return written_data_; }
- void AppendInputData(char* data, int data_size);
+ void AppendInputData(const char* data, int data_size);
int input_pos() { return input_pos_; }
awong 2011/01/20 20:06:38 const functions here and below?
Sergey Ulanov 2011/01/20 21:55:57 Done.
+ bool read_pending() { return read_pending_; }
// net::Socket interface.
virtual int Read(net::IOBuffer* buf, int buf_len,
@@ -64,7 +65,7 @@ class FakeUdpSocket : public net::Socket {
return written_packets_;
}
- void AppendInputPacket(char* data, int data_size);
+ void AppendInputPacket(const char* data, int data_size);
int input_pos() { return input_pos_; }
// net::Socket interface.

Powered by Google App Engine
This is Rietveld 408576698