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

Unified Diff: remoting/host/chromoting_host.cc

Issue 4975003: Introduce a fake HostStub since there's no need to handle it now (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: give HostStubFake Created 10 years, 1 month 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/host/chromoting_host.h ('k') | remoting/host/host_stub_fake.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromoting_host.cc
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
index 9fad9cbf98075932b12a8a856632f46048203641..c7fc7f5fcfd114183a50963042c25381c9ad5440 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);
}
« no previous file with comments | « remoting/host/chromoting_host.h ('k') | remoting/host/host_stub_fake.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698