diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-22 02:34:56 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-22 02:34:56 +0000 |
commit | 6852d7d96f3643277e8dab49e3bfa0e482aafffe (patch) | |
tree | 65b97cf15fb3cb6a60b914abac6310c9ff22e710 /remoting/base | |
parent | a4f4692c776153b2b61c0a63d8b9c80e56613881 (diff) | |
download | chromium_src-6852d7d96f3643277e8dab49e3bfa0e482aafffe.zip chromium_src-6852d7d96f3643277e8dab49e3bfa0e482aafffe.tar.gz chromium_src-6852d7d96f3643277e8dab49e3bfa0e482aafffe.tar.bz2 |
Changed MessageReader so that it doesn't read from the socket if there are
other messages being processed. Added unittests for MessageReader.
BUG=None
TEST=Unittests
Review URL: http://codereview.chromium.org/6271004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72262 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/base')
-rw-r--r-- | remoting/base/compound_buffer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/remoting/base/compound_buffer.h b/remoting/base/compound_buffer.h index eef8d13..cf92242 100644 --- a/remoting/base/compound_buffer.h +++ b/remoting/base/compound_buffer.h @@ -105,6 +105,8 @@ class CompoundBufferInputStream explicit CompoundBufferInputStream(const CompoundBuffer* buffer); virtual ~CompoundBufferInputStream(); + int position() const { return position_; } + // google::protobuf::io::ZeroCopyInputStream interface. virtual bool Next(const void** data, int* size); virtual void BackUp(int count); |