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

Side by Side Diff: webrtc/sdk/objc/Framework/Headers/WebRTC/RTCConfiguration.h

Issue 2030443002: Add flag in ios to support disabling high-cost networks. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: merge with master 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 26 matching lines...) Expand all
37 RTCRtcpMuxPolicyNegotiate, 37 RTCRtcpMuxPolicyNegotiate,
38 RTCRtcpMuxPolicyRequire 38 RTCRtcpMuxPolicyRequire
39 }; 39 };
40 40
41 /** Represents the tcp candidate policy. */ 41 /** Represents the tcp candidate policy. */
42 typedef NS_ENUM(NSInteger, RTCTcpCandidatePolicy) { 42 typedef NS_ENUM(NSInteger, RTCTcpCandidatePolicy) {
43 RTCTcpCandidatePolicyEnabled, 43 RTCTcpCandidatePolicyEnabled,
44 RTCTcpCandidatePolicyDisabled 44 RTCTcpCandidatePolicyDisabled
45 }; 45 };
46 46
47 /** Represents the candidate network policy. */
48 typedef NS_ENUM(NSInteger, RTCCandidateNetworkPolicy) {
49 RTCCandidateNetworkPolicyAll,
50 RTCCandidateNetworkPolicyLowCost
51 };
52
47 /** Represents the continual gathering policy. */ 53 /** Represents the continual gathering policy. */
48 typedef NS_ENUM(NSInteger, RTCContinualGatheringPolicy) { 54 typedef NS_ENUM(NSInteger, RTCContinualGatheringPolicy) {
49 RTCContinualGatheringPolicyGatherOnce, 55 RTCContinualGatheringPolicyGatherOnce,
50 RTCContinualGatheringPolicyGatherContinually 56 RTCContinualGatheringPolicyGatherContinually
51 }; 57 };
52 58
53 /** Represents the encryption key type. */ 59 /** Represents the encryption key type. */
54 typedef NS_ENUM(NSInteger, RTCEncryptionKeyType) { 60 typedef NS_ENUM(NSInteger, RTCEncryptionKeyType) {
55 RTCEncryptionKeyTypeRSA, 61 RTCEncryptionKeyTypeRSA,
56 RTCEncryptionKeyTypeECDSA, 62 RTCEncryptionKeyTypeECDSA,
(...skipping 10 matching lines...) Expand all
67 /** Which candidates the ICE agent is allowed to use. The W3C calls it 73 /** Which candidates the ICE agent is allowed to use. The W3C calls it
68 * |iceTransportPolicy|, while in C++ it is called |type|. */ 74 * |iceTransportPolicy|, while in C++ it is called |type|. */
69 @property(nonatomic, assign) RTCIceTransportPolicy iceTransportPolicy; 75 @property(nonatomic, assign) RTCIceTransportPolicy iceTransportPolicy;
70 76
71 /** The media-bundling policy to use when gathering ICE candidates. */ 77 /** The media-bundling policy to use when gathering ICE candidates. */
72 @property(nonatomic, assign) RTCBundlePolicy bundlePolicy; 78 @property(nonatomic, assign) RTCBundlePolicy bundlePolicy;
73 79
74 /** The rtcp-mux policy to use when gathering ICE candidates. */ 80 /** The rtcp-mux policy to use when gathering ICE candidates. */
75 @property(nonatomic, assign) RTCRtcpMuxPolicy rtcpMuxPolicy; 81 @property(nonatomic, assign) RTCRtcpMuxPolicy rtcpMuxPolicy;
76 @property(nonatomic, assign) RTCTcpCandidatePolicy tcpCandidatePolicy; 82 @property(nonatomic, assign) RTCTcpCandidatePolicy tcpCandidatePolicy;
83 @property(nonatomic, assign) RTCCandidateNetworkPolicy candidateNetworkPolicy;
77 @property(nonatomic, assign) 84 @property(nonatomic, assign)
78 RTCContinualGatheringPolicy continualGatheringPolicy; 85 RTCContinualGatheringPolicy continualGatheringPolicy;
79 @property(nonatomic, assign) int audioJitterBufferMaxPackets; 86 @property(nonatomic, assign) int audioJitterBufferMaxPackets;
80 @property(nonatomic, assign) int iceConnectionReceivingTimeout; 87 @property(nonatomic, assign) int iceConnectionReceivingTimeout;
81 @property(nonatomic, assign) int iceBackupCandidatePairPingInterval; 88 @property(nonatomic, assign) int iceBackupCandidatePairPingInterval;
82 89
83 /** Key type used to generate SSL identity. Default is ECDSA. */ 90 /** Key type used to generate SSL identity. Default is ECDSA. */
84 @property(nonatomic, assign) RTCEncryptionKeyType keyType; 91 @property(nonatomic, assign) RTCEncryptionKeyType keyType;
85 92
86 /** ICE candidate pool size as defined in JSEP. Default is 0. */ 93 /** ICE candidate pool size as defined in JSEP. Default is 0. */
87 @property(nonatomic, assign) int iceCandidatePoolSize; 94 @property(nonatomic, assign) int iceCandidatePoolSize;
88 95
89 - (instancetype)init NS_DESIGNATED_INITIALIZER; 96 - (instancetype)init NS_DESIGNATED_INITIALIZER;
90 97
91 @end 98 @end
92 99
93 NS_ASSUME_NONNULL_END 100 NS_ASSUME_NONNULL_END
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698