diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-19 23:44:45 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-19 23:44:45 +0000 |
commit | c56acf54ff891a942b62effd95fd7a1984533cab (patch) | |
tree | e631a3d707fdd74acc670a54bfc3dac7631524e1 /remoting/client | |
parent | b1308bd418eefc8b1f3410724229c1016a47f01d (diff) | |
download | chromium_src-c56acf54ff891a942b62effd95fd7a1984533cab.zip chromium_src-c56acf54ff891a942b62effd95fd7a1984533cab.tar.gz chromium_src-c56acf54ff891a942b62effd95fd7a1984533cab.tar.bz2 |
Use VideoStub interface on the host side.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/5232004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66841 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/client')
-rw-r--r-- | remoting/client/chromoting_client.cc | 4 | ||||
-rw-r--r-- | remoting/client/chromoting_client.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/remoting/client/chromoting_client.cc b/remoting/client/chromoting_client.cc index 1a0192c..cd358c4 100644 --- a/remoting/client/chromoting_client.cc +++ b/remoting/client/chromoting_client.cc @@ -110,6 +110,10 @@ void ChromotingClient::ProcessVideoPacket(const VideoPacket* packet, DispatchPacket(); } +int ChromotingClient::GetPendingPackets() { + return received_packets_.size(); +} + void ChromotingClient::DispatchPacket() { DCHECK_EQ(message_loop(), MessageLoop::current()); CHECK(!packet_being_processed_); diff --git a/remoting/client/chromoting_client.h b/remoting/client/chromoting_client.h index 7bbe306..e6e7d7d 100644 --- a/remoting/client/chromoting_client.h +++ b/remoting/client/chromoting_client.h @@ -59,6 +59,7 @@ class ChromotingClient : public protocol::ConnectionToHost::HostEventCallback, // VideoStub implementation. virtual void ProcessVideoPacket(const VideoPacket* packet, Task* done); + virtual int GetPendingPackets(); private: struct QueuedVideoPacket { |