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

Unified Diff: remoting/protocol/ice_connection_to_client.cc

Issue 1531983002: Replace ice_connection_to_client_unittest.cc with connection_unittest.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/fake_stream_socket.cc ('k') | remoting/protocol/ice_connection_to_client_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/ice_connection_to_client.cc
diff --git a/remoting/protocol/ice_connection_to_client.cc b/remoting/protocol/ice_connection_to_client.cc
index e794987af2080cd88d137ccb85b1fa9098b946ab..88e08b3b543c4fa51b761e8f0025eef79b755cfc 100644
--- a/remoting/protocol/ice_connection_to_client.cc
+++ b/remoting/protocol/ice_connection_to_client.cc
@@ -47,7 +47,10 @@ IceConnectionToClient::IceConnectionToClient(
scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner)
: event_handler_(nullptr),
session_(session.Pass()),
- video_encode_task_runner_(video_encode_task_runner) {
+ video_encode_task_runner_(video_encode_task_runner),
+ control_dispatcher_(new HostControlDispatcher()),
+ event_dispatcher_(new HostEventDispatcher()),
+ video_dispatcher_(new HostVideoDispatcher()) {
session_->SetEventHandler(this);
}
@@ -139,18 +142,15 @@ void IceConnectionToClient::OnSessionStateChange(Session::State state) {
break;
case Session::AUTHENTICATED:
// Initialize channels.
- control_dispatcher_.reset(new HostControlDispatcher());
control_dispatcher_->Init(session_.get(),
session_->config().control_config(), this);
- event_dispatcher_.reset(new HostEventDispatcher());
event_dispatcher_->Init(session_.get(), session_->config().event_config(),
this);
event_dispatcher_->set_on_input_event_callback(
base::Bind(&IceConnectionToClient::OnInputEventReceived,
base::Unretained(this)));
- video_dispatcher_.reset(new HostVideoDispatcher());
video_dispatcher_->Init(session_.get(), session_->config().video_config(),
this);
« no previous file with comments | « remoting/protocol/fake_stream_socket.cc ('k') | remoting/protocol/ice_connection_to_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698