1*d9f75844SAndroid Build Coastguard Worker /* 2*d9f75844SAndroid Build Coastguard Worker * Copyright 2015 The WebRTC project authors. All Rights Reserved. 3*d9f75844SAndroid Build Coastguard Worker * 4*d9f75844SAndroid Build Coastguard Worker * Use of this source code is governed by a BSD-style license 5*d9f75844SAndroid Build Coastguard Worker * that can be found in the LICENSE file in the root of the source 6*d9f75844SAndroid Build Coastguard Worker * tree. An additional intellectual property rights grant can be found 7*d9f75844SAndroid Build Coastguard Worker * in the file PATENTS. All contributing project authors may 8*d9f75844SAndroid Build Coastguard Worker * be found in the AUTHORS file in the root of the source tree. 9*d9f75844SAndroid Build Coastguard Worker */ 10*d9f75844SAndroid Build Coastguard Worker 11*d9f75844SAndroid Build Coastguard Worker #import "RTCConfiguration.h" 12*d9f75844SAndroid Build Coastguard Worker 13*d9f75844SAndroid Build Coastguard Worker #include "api/peer_connection_interface.h" 14*d9f75844SAndroid Build Coastguard Worker 15*d9f75844SAndroid Build Coastguard Worker NS_ASSUME_NONNULL_BEGIN 16*d9f75844SAndroid Build Coastguard Worker 17*d9f75844SAndroid Build Coastguard Worker @interface RTC_OBJC_TYPE (RTCConfiguration) 18*d9f75844SAndroid Build Coastguard Worker () 19*d9f75844SAndroid Build Coastguard Worker 20*d9f75844SAndroid Build Coastguard Worker + (webrtc::PeerConnectionInterface::IceTransportsType)nativeTransportsTypeForTransportPolicy 21*d9f75844SAndroid Build Coastguard Worker : (RTCIceTransportPolicy)policy; 22*d9f75844SAndroid Build Coastguard Worker 23*d9f75844SAndroid Build Coastguard Worker + (RTCIceTransportPolicy)transportPolicyForTransportsType: 24*d9f75844SAndroid Build Coastguard Worker (webrtc::PeerConnectionInterface::IceTransportsType)nativeType; 25*d9f75844SAndroid Build Coastguard Worker 26*d9f75844SAndroid Build Coastguard Worker + (NSString *)stringForTransportPolicy:(RTCIceTransportPolicy)policy; 27*d9f75844SAndroid Build Coastguard Worker 28*d9f75844SAndroid Build Coastguard Worker + (webrtc::PeerConnectionInterface::BundlePolicy)nativeBundlePolicyForPolicy: 29*d9f75844SAndroid Build Coastguard Worker (RTCBundlePolicy)policy; 30*d9f75844SAndroid Build Coastguard Worker 31*d9f75844SAndroid Build Coastguard Worker + (RTCBundlePolicy)bundlePolicyForNativePolicy: 32*d9f75844SAndroid Build Coastguard Worker (webrtc::PeerConnectionInterface::BundlePolicy)nativePolicy; 33*d9f75844SAndroid Build Coastguard Worker 34*d9f75844SAndroid Build Coastguard Worker + (NSString *)stringForBundlePolicy:(RTCBundlePolicy)policy; 35*d9f75844SAndroid Build Coastguard Worker 36*d9f75844SAndroid Build Coastguard Worker + (webrtc::PeerConnectionInterface::RtcpMuxPolicy)nativeRtcpMuxPolicyForPolicy: 37*d9f75844SAndroid Build Coastguard Worker (RTCRtcpMuxPolicy)policy; 38*d9f75844SAndroid Build Coastguard Worker 39*d9f75844SAndroid Build Coastguard Worker + (RTCRtcpMuxPolicy)rtcpMuxPolicyForNativePolicy: 40*d9f75844SAndroid Build Coastguard Worker (webrtc::PeerConnectionInterface::RtcpMuxPolicy)nativePolicy; 41*d9f75844SAndroid Build Coastguard Worker 42*d9f75844SAndroid Build Coastguard Worker + (NSString *)stringForRtcpMuxPolicy:(RTCRtcpMuxPolicy)policy; 43*d9f75844SAndroid Build Coastguard Worker 44*d9f75844SAndroid Build Coastguard Worker + (webrtc::PeerConnectionInterface::TcpCandidatePolicy)nativeTcpCandidatePolicyForPolicy: 45*d9f75844SAndroid Build Coastguard Worker (RTCTcpCandidatePolicy)policy; 46*d9f75844SAndroid Build Coastguard Worker 47*d9f75844SAndroid Build Coastguard Worker + (RTCTcpCandidatePolicy)tcpCandidatePolicyForNativePolicy: 48*d9f75844SAndroid Build Coastguard Worker (webrtc::PeerConnectionInterface::TcpCandidatePolicy)nativePolicy; 49*d9f75844SAndroid Build Coastguard Worker 50*d9f75844SAndroid Build Coastguard Worker + (NSString *)stringForTcpCandidatePolicy:(RTCTcpCandidatePolicy)policy; 51*d9f75844SAndroid Build Coastguard Worker 52*d9f75844SAndroid Build Coastguard Worker + (webrtc::PeerConnectionInterface::CandidateNetworkPolicy)nativeCandidateNetworkPolicyForPolicy: 53*d9f75844SAndroid Build Coastguard Worker (RTCCandidateNetworkPolicy)policy; 54*d9f75844SAndroid Build Coastguard Worker 55*d9f75844SAndroid Build Coastguard Worker + (RTCCandidateNetworkPolicy)candidateNetworkPolicyForNativePolicy: 56*d9f75844SAndroid Build Coastguard Worker (webrtc::PeerConnectionInterface::CandidateNetworkPolicy)nativePolicy; 57*d9f75844SAndroid Build Coastguard Worker 58*d9f75844SAndroid Build Coastguard Worker + (NSString *)stringForCandidateNetworkPolicy:(RTCCandidateNetworkPolicy)policy; 59*d9f75844SAndroid Build Coastguard Worker 60*d9f75844SAndroid Build Coastguard Worker + (rtc::KeyType)nativeEncryptionKeyTypeForKeyType:(RTCEncryptionKeyType)keyType; 61*d9f75844SAndroid Build Coastguard Worker 62*d9f75844SAndroid Build Coastguard Worker + (webrtc::SdpSemantics)nativeSdpSemanticsForSdpSemantics:(RTCSdpSemantics)sdpSemantics; 63*d9f75844SAndroid Build Coastguard Worker 64*d9f75844SAndroid Build Coastguard Worker + (RTCSdpSemantics)sdpSemanticsForNativeSdpSemantics:(webrtc::SdpSemantics)sdpSemantics; 65*d9f75844SAndroid Build Coastguard Worker 66*d9f75844SAndroid Build Coastguard Worker + (NSString *)stringForSdpSemantics:(RTCSdpSemantics)sdpSemantics; 67*d9f75844SAndroid Build Coastguard Worker 68*d9f75844SAndroid Build Coastguard Worker /** 69*d9f75844SAndroid Build Coastguard Worker * RTCConfiguration struct representation of this RTCConfiguration. 70*d9f75844SAndroid Build Coastguard Worker * This is needed to pass to the underlying C++ APIs. 71*d9f75844SAndroid Build Coastguard Worker */ 72*d9f75844SAndroid Build Coastguard Worker - (nullable webrtc::PeerConnectionInterface::RTCConfiguration *)createNativeConfiguration; 73*d9f75844SAndroid Build Coastguard Worker 74*d9f75844SAndroid Build Coastguard Worker - (instancetype)initWithNativeConfiguration: 75*d9f75844SAndroid Build Coastguard Worker (const webrtc::PeerConnectionInterface::RTCConfiguration &)config NS_DESIGNATED_INITIALIZER; 76*d9f75844SAndroid Build Coastguard Worker 77*d9f75844SAndroid Build Coastguard Worker @end 78*d9f75844SAndroid Build Coastguard Worker 79*d9f75844SAndroid Build Coastguard Worker NS_ASSUME_NONNULL_END 80