| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "remoting/protocol/ice_connection_to_client.h" | 5 #include "remoting/protocol/ice_connection_to_client.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 } // namespace | 51 } // namespace |
| 52 | 52 |
| 53 IceConnectionToClient::IceConnectionToClient( | 53 IceConnectionToClient::IceConnectionToClient( |
| 54 std::unique_ptr<protocol::Session> session, | 54 std::unique_ptr<protocol::Session> session, |
| 55 scoped_refptr<TransportContext> transport_context, | 55 scoped_refptr<TransportContext> transport_context, |
| 56 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner, | 56 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner, |
| 57 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner) | 57 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner) |
| 58 : event_handler_(nullptr), | 58 : event_handler_(nullptr), |
| 59 session_(std::move(session)), | 59 session_(std::move(session)), |
| 60 video_encode_task_runner_(video_encode_task_runner), | 60 video_encode_task_runner_(std::move(video_encode_task_runner)), |
| 61 audio_task_runner_(audio_task_runner), | 61 audio_task_runner_(std::move(audio_task_runner)), |
| 62 transport_(transport_context, this), | 62 transport_(transport_context, this), |
| 63 control_dispatcher_(new HostControlDispatcher()), | 63 control_dispatcher_(new HostControlDispatcher()), |
| 64 event_dispatcher_(new HostEventDispatcher()), | 64 event_dispatcher_(new HostEventDispatcher()), |
| 65 video_dispatcher_(new HostVideoDispatcher()) { | 65 video_dispatcher_(new HostVideoDispatcher()) { |
| 66 session_->SetEventHandler(this); | 66 session_->SetEventHandler(this); |
| 67 session_->SetTransport(&transport_); | 67 session_->SetTransport(&transport_); |
| 68 } | 68 } |
| 69 | 69 |
| 70 IceConnectionToClient::~IceConnectionToClient() {} | 70 IceConnectionToClient::~IceConnectionToClient() {} |
| 71 | 71 |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 | 225 |
| 226 void IceConnectionToClient::CloseChannels() { | 226 void IceConnectionToClient::CloseChannels() { |
| 227 control_dispatcher_.reset(); | 227 control_dispatcher_.reset(); |
| 228 event_dispatcher_.reset(); | 228 event_dispatcher_.reset(); |
| 229 video_dispatcher_.reset(); | 229 video_dispatcher_.reset(); |
| 230 audio_writer_.reset(); | 230 audio_writer_.reset(); |
| 231 } | 231 } |
| 232 | 232 |
| 233 } // namespace protocol | 233 } // namespace protocol |
| 234 } // namespace remoting | 234 } // namespace remoting |
| OLD | NEW |