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