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

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
« no previous file with comments | « remoting/protocol/connection_to_client.h ('k') | remoting/protocol/protocol_mock_objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « remoting/protocol/connection_to_client.h ('k') | remoting/protocol/protocol_mock_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698