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

Side by Side Diff: webrtc/pc/webrtcsession.cc

Issue 2670053002: Allow applications to limit the ICE check rate through RTCConfiguration (Closed)
Patch Set: CR feedback Created 3 years, 10 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 | « webrtc/pc/peerconnection.cc ('k') | webrtc/sdk/android/api/org/webrtc/PeerConnection.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 } 1182 }
1183 cricket::IceConfig ice_config; 1183 cricket::IceConfig ice_config;
1184 ice_config.receiving_timeout = config.ice_connection_receiving_timeout; 1184 ice_config.receiving_timeout = config.ice_connection_receiving_timeout;
1185 ice_config.prioritize_most_likely_candidate_pairs = 1185 ice_config.prioritize_most_likely_candidate_pairs =
1186 config.prioritize_most_likely_ice_candidate_pairs; 1186 config.prioritize_most_likely_ice_candidate_pairs;
1187 ice_config.backup_connection_ping_interval = 1187 ice_config.backup_connection_ping_interval =
1188 config.ice_backup_candidate_pair_ping_interval; 1188 config.ice_backup_candidate_pair_ping_interval;
1189 ice_config.continual_gathering_policy = gathering_policy; 1189 ice_config.continual_gathering_policy = gathering_policy;
1190 ice_config.presume_writable_when_fully_relayed = 1190 ice_config.presume_writable_when_fully_relayed =
1191 config.presume_writable_when_fully_relayed; 1191 config.presume_writable_when_fully_relayed;
1192 ice_config.ice_check_min_interval = config.ice_check_min_interval;
1192 return ice_config; 1193 return ice_config;
1193 } 1194 }
1194 1195
1195 void WebRtcSession::SetIceConfig(const cricket::IceConfig& config) { 1196 void WebRtcSession::SetIceConfig(const cricket::IceConfig& config) {
1196 transport_controller_->SetIceConfig(config); 1197 transport_controller_->SetIceConfig(config);
1197 } 1198 }
1198 1199
1199 void WebRtcSession::MaybeStartGathering() { 1200 void WebRtcSession::MaybeStartGathering() {
1200 transport_controller_->MaybeStartGathering(); 1201 transport_controller_->MaybeStartGathering();
1201 } 1202 }
(...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after
2358 (rtp_data_channel_->rtcp_dtls_transport() != nullptr); 2359 (rtp_data_channel_->rtcp_dtls_transport() != nullptr);
2359 channel_manager_->DestroyRtpDataChannel(rtp_data_channel_.release()); 2360 channel_manager_->DestroyRtpDataChannel(rtp_data_channel_.release());
2360 transport_controller_->DestroyDtlsTransport( 2361 transport_controller_->DestroyDtlsTransport(
2361 transport_name, cricket::ICE_CANDIDATE_COMPONENT_RTP); 2362 transport_name, cricket::ICE_CANDIDATE_COMPONENT_RTP);
2362 if (need_to_delete_rtcp) { 2363 if (need_to_delete_rtcp) {
2363 transport_controller_->DestroyDtlsTransport( 2364 transport_controller_->DestroyDtlsTransport(
2364 transport_name, cricket::ICE_CANDIDATE_COMPONENT_RTCP); 2365 transport_name, cricket::ICE_CANDIDATE_COMPONENT_RTCP);
2365 } 2366 }
2366 } 2367 }
2367 } // namespace webrtc 2368 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/pc/peerconnection.cc ('k') | webrtc/sdk/android/api/org/webrtc/PeerConnection.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698