Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Side by Side Diff: remoting/protocol/ice_connection_to_client.cc

Issue 1852033002: Fix WebRTC transport to use single offer-answer exchange instead of two. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no_cast
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_->CreateVideoStreams(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698