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

Unified Diff: remoting/protocol/host_message_dispatcher.h

Issue 6277003: Simplified MessageReader and MessageDecoder classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - 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
« no previous file with comments | « remoting/protocol/client_message_dispatcher.cc ('k') | remoting/protocol/host_message_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/host_message_dispatcher.h
diff --git a/remoting/protocol/host_message_dispatcher.h b/remoting/protocol/host_message_dispatcher.h
index 6274168e27770112681b25428eeba94d2be883b3..8ebed01aec9f7da83fbf0be60106a624688a5a95 100644
--- a/remoting/protocol/host_message_dispatcher.h
+++ b/remoting/protocol/host_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,7 +18,6 @@ namespace protocol {
class ControlMessage;
class HostStub;
-class MessageReader;
class InputStub;
class Session;
@@ -54,10 +54,10 @@ class HostMessageDispatcher {
// MessageReader that runs on the control channel. It runs a loop
// that parses data on the channel and then delegates the message to this
// class.
- scoped_ptr<MessageReader> control_message_reader_;
+ scoped_ptr<ProtobufMessageReader<ControlMessage> > control_message_reader_;
// MessageReader that runs on the event channel.
- scoped_ptr<MessageReader> event_message_reader_;
+ scoped_ptr<ProtobufMessageReader<EventMessage> > event_message_reader_;
// Stubs for host and input. These objects are not owned.
// They are called on the thread there data is received, i.e. jingle thread.
« no previous file with comments | « remoting/protocol/client_message_dispatcher.cc ('k') | remoting/protocol/host_message_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698