summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/client_message_dispatcher.h
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-14 21:58:01 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-14 21:58:01 +0000
commit051916e611af748469e61ac32a4ae65eb126deaf (patch)
treec9b52630f0c5b1cf5ab5497d69404a1b351604f9 /remoting/protocol/client_message_dispatcher.h
parent0a5fb17a569ccc83ecc1d340af9c90279e9e9817 (diff)
downloadchromium_src-051916e611af748469e61ac32a4ae65eb126deaf.zip
chromium_src-051916e611af748469e61ac32a4ae65eb126deaf.tar.gz
chromium_src-051916e611af748469e61ac32a4ae65eb126deaf.tar.bz2
Simplified MessageReader and MessageDecoder classes.
Now these two classes are not templates, and just handle raw data. New ProtobufMessageReader is used to parse messages. BUG=None TEST=Unittests. Review URL: http://codereview.chromium.org/6277003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71497 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/client_message_dispatcher.h')
-rw-r--r--remoting/protocol/client_message_dispatcher.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/remoting/protocol/client_message_dispatcher.h b/remoting/protocol/client_message_dispatcher.h
index cad48e4..8f0f5a6 100644
--- a/remoting/protocol/client_message_dispatcher.h
+++ b/remoting/protocol/client_message_dispatcher.h
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/scoped_ptr.h"
#include "base/task.h"
+#include "remoting/protocol/message_reader.h"
namespace remoting {
@@ -17,8 +18,6 @@ namespace protocol {
class ClientStub;
class ControlMessage;
-class InputStub;
-class MessageReader;
class Session;
// A message dispatcher used to listen for messages received in
@@ -46,7 +45,7 @@ class ClientMessageDispatcher {
// MessageReader that runs on the control channel. It runs a loop
// that parses data on the channel and then calls the corresponding handler
// in this class.
- scoped_ptr<MessageReader> control_message_reader_;
+ scoped_ptr<ProtobufMessageReader<ControlMessage> > control_message_reader_;
// Stubs for client and input. These objects are not owned.
// They are called on the thread there data is received, i.e. jingle thread.