diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-17 05:20:29 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-17 05:20:29 +0000 |
commit | 8de78b013c1754d83a67312b086a53bd6d593ab9 (patch) | |
tree | 652796af29d37bc785fd632e29526f4f6599b4c3 /remoting/host/chromoting_host.cc | |
parent | 292918ca45e86e9b69188cba4a28f6d425e46ddb (diff) | |
download | chromium_src-8de78b013c1754d83a67312b086a53bd6d593ab9.zip chromium_src-8de78b013c1754d83a67312b086a53bd6d593ab9.tar.gz chromium_src-8de78b013c1754d83a67312b086a53bd6d593ab9.tar.bz2 |
Introduce a fake HostStub since there's no need to handle it now
Also changed ChormotingHost to use it.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/4975003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66389 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/chromoting_host.cc')
-rw-r--r-- | remoting/host/chromoting_host.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc index 9fad9cbf..c7fc7f5 100644 --- a/remoting/host/chromoting_host.cc +++ b/remoting/host/chromoting_host.cc @@ -15,10 +15,13 @@ #include "remoting/host/chromoting_host_context.h" #include "remoting/host/capturer.h" #include "remoting/host/host_config.h" +#include "remoting/host/host_stub_fake.h" #include "remoting/host/session_manager.h" -#include "remoting/protocol/session_config.h" -#include "remoting/protocol/jingle_session_manager.h" #include "remoting/protocol/connection_to_client.h" +#include "remoting/protocol/host_stub.h" +#include "remoting/protocol/input_stub.h" +#include "remoting/protocol/jingle_session_manager.h" +#include "remoting/protocol/session_config.h" using remoting::protocol::ConnectionToClient; @@ -32,6 +35,7 @@ ChromotingHost::ChromotingHost(ChromotingHostContext* context, config_(config), capturer_(capturer), input_stub_(input_stub), + host_stub_(new HostStubFake()), state_(kInitial) { } @@ -273,7 +277,8 @@ void ChromotingHost::OnNewClientSession( // If we accept the connected then create a client object and set the // callback. connection_ = new ConnectionToClient(context_->main_message_loop(), - this, NULL, input_stub_.get()); + this, host_stub_.get(), + input_stub_.get()); connection_->Init(session); } |