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

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

Issue 2035473004: RTCPeerConnectionInterface.mm createNativeConfiguration and other clean-up. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixed presubmit warnings (lines longer than) Created 4 years, 6 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 + (webrtc::PeerConnectionInterface::CandidateNetworkPolicy) 243 + (webrtc::PeerConnectionInterface::CandidateNetworkPolicy)
244 nativeCandidateNetworkPolicyForPolicy:(RTCCandidateNetworkPolicy)policy { 244 nativeCandidateNetworkPolicyForPolicy:(RTCCandidateNetworkPolicy)policy {
245 switch (policy) { 245 switch (policy) {
246 case RTCCandidateNetworkPolicyAll: 246 case RTCCandidateNetworkPolicyAll:
247 return webrtc::PeerConnectionInterface::kCandidateNetworkPolicyAll; 247 return webrtc::PeerConnectionInterface::kCandidateNetworkPolicyAll;
248 case RTCCandidateNetworkPolicyLowCost: 248 case RTCCandidateNetworkPolicyLowCost:
249 return webrtc::PeerConnectionInterface::kCandidateNetworkPolicyLowCost; 249 return webrtc::PeerConnectionInterface::kCandidateNetworkPolicyLowCost;
250 } 250 }
251 } 251 }
252 252
253 + (rtc::KeyType)nativeEncryptionKeyTypeForKeyType:
254 (RTCEncryptionKeyType)keyType {
255 switch (keyType) {
256 case RTCEncryptionKeyTypeRSA:
257 return rtc::KT_RSA;
258 case RTCEncryptionKeyTypeECDSA:
259 return rtc::KT_ECDSA;
260 }
261 }
262
263 + (RTCTcpCandidatePolicy)tcpCandidatePolicyForNativePolicy: 253 + (RTCTcpCandidatePolicy)tcpCandidatePolicyForNativePolicy:
264 (webrtc::PeerConnectionInterface::TcpCandidatePolicy)nativePolicy { 254 (webrtc::PeerConnectionInterface::TcpCandidatePolicy)nativePolicy {
265 switch (nativePolicy) { 255 switch (nativePolicy) {
266 case webrtc::PeerConnectionInterface::kTcpCandidatePolicyEnabled: 256 case webrtc::PeerConnectionInterface::kTcpCandidatePolicyEnabled:
267 return RTCTcpCandidatePolicyEnabled; 257 return RTCTcpCandidatePolicyEnabled;
268 case webrtc::PeerConnectionInterface::kTcpCandidatePolicyDisabled: 258 case webrtc::PeerConnectionInterface::kTcpCandidatePolicyDisabled:
269 return RTCTcpCandidatePolicyDisabled; 259 return RTCTcpCandidatePolicyDisabled;
270 } 260 }
271 } 261 }
272 262
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 + (NSString *)stringForContinualGatheringPolicy: 313 + (NSString *)stringForContinualGatheringPolicy:
324 (RTCContinualGatheringPolicy)policy { 314 (RTCContinualGatheringPolicy)policy {
325 switch (policy) { 315 switch (policy) {
326 case RTCContinualGatheringPolicyGatherOnce: 316 case RTCContinualGatheringPolicyGatherOnce:
327 return @"GATHER_ONCE"; 317 return @"GATHER_ONCE";
328 case RTCContinualGatheringPolicyGatherContinually: 318 case RTCContinualGatheringPolicyGatherContinually:
329 return @"GATHER_CONTINUALLY"; 319 return @"GATHER_CONTINUALLY";
330 } 320 }
331 } 321 }
332 322
323 + (rtc::KeyType)nativeEncryptionKeyTypeForKeyType:
324 (RTCEncryptionKeyType)keyType {
325 switch (keyType) {
326 case RTCEncryptionKeyTypeRSA:
327 return rtc::KT_RSA;
328 case RTCEncryptionKeyTypeECDSA:
329 return rtc::KT_ECDSA;
330 }
331 }
332
333 @end 333 @end
OLDNEW
« no previous file with comments | « webrtc/api/peerconnectioninterface.h ('k') | webrtc/sdk/objc/Framework/Classes/RTCConfiguration+Private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698