summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/host_message_dispatcher.h
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-22 02:34:56 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-22 02:34:56 +0000
commit6852d7d96f3643277e8dab49e3bfa0e482aafffe (patch)
tree65b97cf15fb3cb6a60b914abac6310c9ff22e710 /remoting/protocol/host_message_dispatcher.h
parenta4f4692c776153b2b61c0a63d8b9c80e56613881 (diff)
downloadchromium_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/protocol/host_message_dispatcher.h')
-rw-r--r--remoting/protocol/host_message_dispatcher.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/remoting/protocol/host_message_dispatcher.h b/remoting/protocol/host_message_dispatcher.h
index 8ebed01..60afb27 100644
--- a/remoting/protocol/host_message_dispatcher.h
+++ b/remoting/protocol/host_message_dispatcher.h
@@ -11,12 +11,10 @@
#include "remoting/protocol/message_reader.h"
namespace remoting {
-
-class EventMessage;
-
namespace protocol {
class ControlMessage;
+class EventMessage;
class HostStub;
class InputStub;
class Session;
@@ -45,11 +43,11 @@ class HostMessageDispatcher {
private:
// This method is called by |control_channel_reader_| when a control
// message is received.
- void OnControlMessageReceived(ControlMessage* message);
+ void OnControlMessageReceived(ControlMessage* message, Task* done_task);
// This method is called by |event_channel_reader_| when a event
// message is received.
- void OnEventMessageReceived(EventMessage* message);
+ void OnEventMessageReceived(EventMessage* message, Task* done_task);
// MessageReader that runs on the control channel. It runs a loop
// that parses data on the channel and then delegates the message to this