hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
Anders Carlsson | 7bca8ca | 2018-08-30 09:30:29 +0200 | [diff] [blame] | 11 | #import "RTCConfiguration.h" |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 12 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame^] | 13 | #include "api/peer_connection_interface.h" |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 14 | |
| 15 | NS_ASSUME_NONNULL_BEGIN |
| 16 | |
| 17 | @interface RTCConfiguration () |
| 18 | |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 19 | + (webrtc::PeerConnectionInterface::IceTransportsType)nativeTransportsTypeForTransportPolicy: |
| 20 | (RTCIceTransportPolicy)policy; |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 21 | |
| 22 | + (RTCIceTransportPolicy)transportPolicyForTransportsType: |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 23 | (webrtc::PeerConnectionInterface::IceTransportsType)nativeType; |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 24 | |
| 25 | + (NSString *)stringForTransportPolicy:(RTCIceTransportPolicy)policy; |
| 26 | |
| 27 | + (webrtc::PeerConnectionInterface::BundlePolicy)nativeBundlePolicyForPolicy: |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 28 | (RTCBundlePolicy)policy; |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 29 | |
| 30 | + (RTCBundlePolicy)bundlePolicyForNativePolicy: |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 31 | (webrtc::PeerConnectionInterface::BundlePolicy)nativePolicy; |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 32 | |
| 33 | + (NSString *)stringForBundlePolicy:(RTCBundlePolicy)policy; |
| 34 | |
| 35 | + (webrtc::PeerConnectionInterface::RtcpMuxPolicy)nativeRtcpMuxPolicyForPolicy: |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 36 | (RTCRtcpMuxPolicy)policy; |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 37 | |
| 38 | + (RTCRtcpMuxPolicy)rtcpMuxPolicyForNativePolicy: |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 39 | (webrtc::PeerConnectionInterface::RtcpMuxPolicy)nativePolicy; |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 40 | |
| 41 | + (NSString *)stringForRtcpMuxPolicy:(RTCRtcpMuxPolicy)policy; |
| 42 | |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 43 | + (webrtc::PeerConnectionInterface::TcpCandidatePolicy)nativeTcpCandidatePolicyForPolicy: |
| 44 | (RTCTcpCandidatePolicy)policy; |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 45 | |
| 46 | + (RTCTcpCandidatePolicy)tcpCandidatePolicyForNativePolicy: |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 47 | (webrtc::PeerConnectionInterface::TcpCandidatePolicy)nativePolicy; |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 48 | |
| 49 | + (NSString *)stringForTcpCandidatePolicy:(RTCTcpCandidatePolicy)policy; |
| 50 | |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 51 | + (webrtc::PeerConnectionInterface::CandidateNetworkPolicy)nativeCandidateNetworkPolicyForPolicy: |
| 52 | (RTCCandidateNetworkPolicy)policy; |
Honghai Zhang | 46007ae | 2016-06-03 16:31:32 -0700 | [diff] [blame] | 53 | |
| 54 | + (RTCCandidateNetworkPolicy)candidateNetworkPolicyForNativePolicy: |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 55 | (webrtc::PeerConnectionInterface::CandidateNetworkPolicy)nativePolicy; |
Honghai Zhang | 46007ae | 2016-06-03 16:31:32 -0700 | [diff] [blame] | 56 | |
| 57 | + (NSString *)stringForCandidateNetworkPolicy:(RTCCandidateNetworkPolicy)policy; |
| 58 | |
hbos | f9da44d | 2016-06-09 03:18:28 -0700 | [diff] [blame] | 59 | + (rtc::KeyType)nativeEncryptionKeyTypeForKeyType:(RTCEncryptionKeyType)keyType; |
| 60 | |
Steve Anton | 8cb344a | 2018-02-27 15:34:53 -0800 | [diff] [blame] | 61 | + (webrtc::SdpSemantics)nativeSdpSemanticsForSdpSemantics:(RTCSdpSemantics)sdpSemantics; |
| 62 | |
| 63 | + (RTCSdpSemantics)sdpSemanticsForNativeSdpSemantics:(webrtc::SdpSemantics)sdpSemantics; |
| 64 | |
| 65 | + (NSString *)stringForSdpSemantics:(RTCSdpSemantics)sdpSemantics; |
| 66 | |
hbos | a73ca56 | 2016-05-17 03:28:58 -0700 | [diff] [blame] | 67 | /** |
| 68 | * RTCConfiguration struct representation of this RTCConfiguration. This is |
| 69 | * needed to pass to the underlying C++ APIs. |
| 70 | */ |
Peter Hanspers | d9b64cd | 2018-01-12 16:16:18 +0100 | [diff] [blame] | 71 | - (nullable webrtc::PeerConnectionInterface::RTCConfiguration *)createNativeConfiguration; |
hbos | a73ca56 | 2016-05-17 03:28:58 -0700 | [diff] [blame] | 72 | |
jtteh | 4eeb537 | 2017-04-03 15:06:37 -0700 | [diff] [blame] | 73 | - (instancetype)initWithNativeConfiguration: |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 74 | (const webrtc::PeerConnectionInterface::RTCConfiguration &)config NS_DESIGNATED_INITIALIZER; |
jtteh | 4eeb537 | 2017-04-03 15:06:37 -0700 | [diff] [blame] | 75 | |
hjon | 6d49a8e | 2016-01-26 13:06:42 -0800 | [diff] [blame] | 76 | @end |
| 77 | |
| 78 | NS_ASSUME_NONNULL_END |