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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 } // namespace | 45 } // namespace |
46 | 46 |
47 IceConnectionToClient::IceConnectionToClient( | 47 IceConnectionToClient::IceConnectionToClient( |
48 std::unique_ptr<protocol::Session> session, | 48 std::unique_ptr<protocol::Session> session, |
49 scoped_refptr<TransportContext> transport_context, | 49 scoped_refptr<TransportContext> transport_context, |
50 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner, | 50 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner, |
51 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner) | 51 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner) |
52 : event_handler_(nullptr), | 52 : event_handler_(nullptr), |
53 session_(std::move(session)), | 53 session_(std::move(session)), |
54 video_encode_task_runner_(video_encode_task_runner), | 54 video_encode_task_runner_(std::move(video_encode_task_runner)), |
55 audio_task_runner_(audio_task_runner), | 55 audio_task_runner_(std::move(audio_task_runner)), |
56 transport_(transport_context, this), | 56 transport_(transport_context, this), |
57 control_dispatcher_(new HostControlDispatcher()), | 57 control_dispatcher_(new HostControlDispatcher()), |
58 event_dispatcher_(new HostEventDispatcher()), | 58 event_dispatcher_(new HostEventDispatcher()), |
59 video_dispatcher_(new HostVideoDispatcher()) { | 59 video_dispatcher_(new HostVideoDispatcher()) { |
60 session_->SetEventHandler(this); | 60 session_->SetEventHandler(this); |
61 session_->SetTransport(&transport_); | 61 session_->SetTransport(&transport_); |
62 } | 62 } |
63 | 63 |
64 IceConnectionToClient::~IceConnectionToClient() {} | 64 IceConnectionToClient::~IceConnectionToClient() {} |
65 | 65 |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 219 |
220 void IceConnectionToClient::CloseChannels() { | 220 void IceConnectionToClient::CloseChannels() { |
221 control_dispatcher_.reset(); | 221 control_dispatcher_.reset(); |
222 event_dispatcher_.reset(); | 222 event_dispatcher_.reset(); |
223 video_dispatcher_.reset(); | 223 video_dispatcher_.reset(); |
224 audio_writer_.reset(); | 224 audio_writer_.reset(); |
225 } | 225 } |
226 | 226 |
227 } // namespace protocol | 227 } // namespace protocol |
228 } // namespace remoting | 228 } // namespace remoting |
OLD | NEW |