diff options
author | garykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-03 21:56:42 +0000 |
---|---|---|
committer | garykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-03 21:56:42 +0000 |
commit | 230d2fd2e1cafaab5cd5e4d2a9f64b4ae272550a (patch) | |
tree | 8aa02e4a85f0d314a4419a434037e163a41981c8 /remoting/protocol/host_message_dispatcher.cc | |
parent | 3296839602c5c54cae0b0fb0a9d6623a5ba65895 (diff) | |
download | chromium_src-230d2fd2e1cafaab5cd5e4d2a9f64b4ae272550a.zip chromium_src-230d2fd2e1cafaab5cd5e4d2a9f64b4ae272550a.tar.gz chromium_src-230d2fd2e1cafaab5cd5e4d2a9f64b4ae272550a.tar.bz2 |
Rename classes for Chromoting:
ChromotocolServer -> protocol::SessionManager
ChromotocolConnection -> protocol::Session
BUG=none
TEST=compiles + make chromoting connection
Review URL: http://codereview.chromium.org/4313001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64971 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/host_message_dispatcher.cc')
-rw-r--r-- | remoting/protocol/host_message_dispatcher.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/remoting/protocol/host_message_dispatcher.cc b/remoting/protocol/host_message_dispatcher.cc index 5406813..d75de95 100644 --- a/remoting/protocol/host_message_dispatcher.cc +++ b/remoting/protocol/host_message_dispatcher.cc @@ -6,12 +6,11 @@ #include "remoting/base/multiple_array_input_stream.h" #include "remoting/proto/control.pb.h" #include "remoting/proto/event.pb.h" -#include "remoting/proto/video.pb.h" -#include "remoting/protocol/chromotocol_connection.h" #include "remoting/protocol/host_message_dispatcher.h" #include "remoting/protocol/host_stub.h" #include "remoting/protocol/input_stub.h" #include "remoting/protocol/message_reader.h" +#include "remoting/protocol/session.h" namespace { @@ -52,10 +51,10 @@ HostMessageDispatcher::~HostMessageDispatcher() { } bool HostMessageDispatcher::Initialize( - ChromotocolConnection* connection, + protocol::Session* session, HostStub* host_stub, InputStub* input_stub) { - if (!connection || !host_stub || !input_stub || - !connection->event_channel() || !connection->control_channel()) { + if (!session || !host_stub || !input_stub || + !session->event_channel() || !session->control_channel()) { return false; } @@ -66,10 +65,10 @@ bool HostMessageDispatcher::Initialize( // Initialize the readers on the sockets provided by channels. event_message_reader_->Init<EventMessage>( - connection->event_channel(), + session->event_channel(), NewCallback(this, &HostMessageDispatcher::OnEventMessageReceived)); control_message_reader_->Init<ControlMessage>( - connection->control_channel(), + session->control_channel(), NewCallback(this, &HostMessageDispatcher::OnControlMessageReceived)); return true; } |