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

Unified Diff: remoting/protocol/host_message_dispatcher.cc

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/host_message_dispatcher.h ('k') | remoting/protocol/jingle_connection_to_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/host_message_dispatcher.cc
diff --git a/remoting/protocol/host_message_dispatcher.cc b/remoting/protocol/host_message_dispatcher.cc
index b5571714d2ec23e2a3848e889505bb52a761d42f..2554c9b2d4d600a42c7a2a2a5c888efb2683bc67 100644
--- a/remoting/protocol/host_message_dispatcher.cc
+++ b/remoting/protocol/host_message_dispatcher.cc
@@ -33,16 +33,16 @@ void HostMessageDispatcher::Initialize(
return;
}
- control_message_reader_.reset(new MessageReader());
- event_message_reader_.reset(new MessageReader());
+ control_message_reader_.reset(new ProtobufMessageReader<ControlMessage>());
+ event_message_reader_.reset(new ProtobufMessageReader<EventMessage>());
host_stub_ = host_stub;
input_stub_ = input_stub;
// Initialize the readers on the sockets provided by channels.
- event_message_reader_->Init<EventMessage>(
+ event_message_reader_->Init(
session->event_channel(),
NewCallback(this, &HostMessageDispatcher::OnEventMessageReceived));
- control_message_reader_->Init<ControlMessage>(
+ control_message_reader_->Init(
session->control_channel(),
NewCallback(this, &HostMessageDispatcher::OnControlMessageReceived));
}
« no previous file with comments | « remoting/protocol/host_message_dispatcher.h ('k') | remoting/protocol/jingle_connection_to_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698