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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 video_encode_task_runner_(std::move(video_encode_task_runner)), | 60 video_encode_task_runner_(std::move(video_encode_task_runner)), |
61 audio_task_runner_(std::move(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 DCHECK(thread_checker_.CalledOnValidThread()); |
| 72 } |
71 | 73 |
72 void IceConnectionToClient::SetEventHandler( | 74 void IceConnectionToClient::SetEventHandler( |
73 ConnectionToClient::EventHandler* event_handler) { | 75 ConnectionToClient::EventHandler* event_handler) { |
74 DCHECK(thread_checker_.CalledOnValidThread()); | 76 DCHECK(thread_checker_.CalledOnValidThread()); |
75 event_handler_ = event_handler; | 77 event_handler_ = event_handler; |
76 } | 78 } |
77 | 79 |
78 protocol::Session* IceConnectionToClient::session() { | 80 protocol::Session* IceConnectionToClient::session() { |
79 DCHECK(thread_checker_.CalledOnValidThread()); | 81 DCHECK(thread_checker_.CalledOnValidThread()); |
80 return session_.get(); | 82 return session_.get(); |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 | 226 |
225 void IceConnectionToClient::CloseChannels() { | 227 void IceConnectionToClient::CloseChannels() { |
226 control_dispatcher_.reset(); | 228 control_dispatcher_.reset(); |
227 event_dispatcher_.reset(); | 229 event_dispatcher_.reset(); |
228 video_dispatcher_.reset(); | 230 video_dispatcher_.reset(); |
229 audio_writer_.reset(); | 231 audio_writer_.reset(); |
230 } | 232 } |
231 | 233 |
232 } // namespace protocol | 234 } // namespace protocol |
233 } // namespace remoting | 235 } // namespace remoting |
OLD | NEW |