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

Side by Side Diff: webrtc/sdk/objc/Framework/Classes/RTCConfiguration.mm

Issue 2295493002: Add a switch to redetermine role when ICE restarts. (Closed)
Patch Set: Add NativeConfiguration method in RTCConfiguration Created 4 years, 3 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 /* 1 /*
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2015 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 23 matching lines...) Expand all
34 @synthesize keyType = _keyType; 34 @synthesize keyType = _keyType;
35 @synthesize iceCandidatePoolSize = _iceCandidatePoolSize; 35 @synthesize iceCandidatePoolSize = _iceCandidatePoolSize;
36 @synthesize shouldPruneTurnPorts = _shouldPruneTurnPorts; 36 @synthesize shouldPruneTurnPorts = _shouldPruneTurnPorts;
37 @synthesize shouldPresumeWritableWhenFullyRelayed = 37 @synthesize shouldPresumeWritableWhenFullyRelayed =
38 _shouldPresumeWritableWhenFullyRelayed; 38 _shouldPresumeWritableWhenFullyRelayed;
39 39
40 - (instancetype)init { 40 - (instancetype)init {
41 if (self = [super init]) { 41 if (self = [super init]) {
42 _iceServers = [NSMutableArray array]; 42 _iceServers = [NSMutableArray array];
43 // Copy defaults. 43 // Copy defaults.
44 webrtc::PeerConnectionInterface::RTCConfiguration config; 44 webrtc::PeerConnectionInterface::RTCConfiguration config = webrtc::
45 PeerConnectionInterface::RTCConfiguration::NativeConfiguration();
45 _iceTransportPolicy = 46 _iceTransportPolicy =
46 [[self class] transportPolicyForTransportsType:config.type]; 47 [[self class] transportPolicyForTransportsType:config.type];
47 _bundlePolicy = 48 _bundlePolicy =
48 [[self class] bundlePolicyForNativePolicy:config.bundle_policy]; 49 [[self class] bundlePolicyForNativePolicy:config.bundle_policy];
49 _rtcpMuxPolicy = 50 _rtcpMuxPolicy =
50 [[self class] rtcpMuxPolicyForNativePolicy:config.rtcp_mux_policy]; 51 [[self class] rtcpMuxPolicyForNativePolicy:config.rtcp_mux_policy];
51 _tcpCandidatePolicy = [[self class] tcpCandidatePolicyForNativePolicy: 52 _tcpCandidatePolicy = [[self class] tcpCandidatePolicyForNativePolicy:
52 config.tcp_candidate_policy]; 53 config.tcp_candidate_policy];
53 _candidateNetworkPolicy = [[self class] 54 _candidateNetworkPolicy = [[self class]
54 candidateNetworkPolicyForNativePolicy:config.candidate_network_policy]; 55 candidateNetworkPolicyForNativePolicy:config.candidate_network_policy];
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 (RTCEncryptionKeyType)keyType { 336 (RTCEncryptionKeyType)keyType {
336 switch (keyType) { 337 switch (keyType) {
337 case RTCEncryptionKeyTypeRSA: 338 case RTCEncryptionKeyTypeRSA:
338 return rtc::KT_RSA; 339 return rtc::KT_RSA;
339 case RTCEncryptionKeyTypeECDSA: 340 case RTCEncryptionKeyTypeECDSA:
340 return rtc::KT_ECDSA; 341 return rtc::KT_ECDSA;
341 } 342 }
342 } 343 }
343 344
344 @end 345 @end
OLDNEW
« webrtc/api/peerconnectioninterface.h ('K') | « webrtc/api/peerconnectioninterface_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698