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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 return; | 198 return; |
199 if (!event_dispatcher_ || !event_dispatcher_->is_connected()) | 199 if (!event_dispatcher_ || !event_dispatcher_->is_connected()) |
200 return; | 200 return; |
201 if (!video_dispatcher_ || !video_dispatcher_->is_connected()) | 201 if (!video_dispatcher_ || !video_dispatcher_->is_connected()) |
202 return; | 202 return; |
203 if ((!audio_writer_ || !audio_writer_->is_connected()) && | 203 if ((!audio_writer_ || !audio_writer_->is_connected()) && |
204 session_->config().is_audio_enabled()) { | 204 session_->config().is_audio_enabled()) { |
205 return; | 205 return; |
206 } | 206 } |
207 event_handler_->OnConnectionChannelsConnected(this); | 207 event_handler_->OnConnectionChannelsConnected(this); |
| 208 event_handler_->OnCreateVideoStreams(this); |
208 } | 209 } |
209 | 210 |
210 void IceConnectionToClient::CloseChannels() { | 211 void IceConnectionToClient::CloseChannels() { |
211 control_dispatcher_.reset(); | 212 control_dispatcher_.reset(); |
212 event_dispatcher_.reset(); | 213 event_dispatcher_.reset(); |
213 video_dispatcher_.reset(); | 214 video_dispatcher_.reset(); |
214 audio_writer_.reset(); | 215 audio_writer_.reset(); |
215 } | 216 } |
216 | 217 |
217 } // namespace protocol | 218 } // namespace protocol |
218 } // namespace remoting | 219 } // namespace remoting |
OLD | NEW |