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

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

Issue 2993403002: Support a user-provided string for the TLS ALPN extension.
Patch Set: Fix previous commit Created 3 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 25 matching lines...) Expand all
36 */ 36 */
37 @property(nonatomic, readonly) RTCTlsCertPolicy tlsCertPolicy; 37 @property(nonatomic, readonly) RTCTlsCertPolicy tlsCertPolicy;
38 38
39 /** 39 /**
40 If the URIs in |urls| only contain IP addresses, this field can be used 40 If the URIs in |urls| only contain IP addresses, this field can be used
41 to indicate the hostname, which may be necessary for TLS (using the SNI 41 to indicate the hostname, which may be necessary for TLS (using the SNI
42 extension). If |urls| itself contains the hostname, this isn't necessary. 42 extension). If |urls| itself contains the hostname, this isn't necessary.
43 */ 43 */
44 @property(nonatomic, readonly, nullable) NSString *hostname; 44 @property(nonatomic, readonly, nullable) NSString *hostname;
45 45
46 /** List of protocols to be used in the TLS ALPN extension. */
47 @property(nonatomic, readonly) NSArray<NSString *> *tlsAlpnProtocols;
48
46 - (nonnull instancetype)init NS_UNAVAILABLE; 49 - (nonnull instancetype)init NS_UNAVAILABLE;
47 50
48 /** Convenience initializer for a server with no authentication (e.g. STUN). */ 51 /** Convenience initializer for a server with no authentication (e.g. STUN). */
49 - (instancetype)initWithURLStrings:(NSArray<NSString *> *)urlStrings; 52 - (instancetype)initWithURLStrings:(NSArray<NSString *> *)urlStrings;
50 53
51 /** 54 /**
52 * Initialize an RTCIceServer with its associated URLs, optional username, 55 * Initialize an RTCIceServer with its associated URLs, optional username,
53 * optional credential, and credentialType. 56 * optional credential, and credentialType.
54 */ 57 */
55 - (instancetype)initWithURLStrings:(NSArray<NSString *> *)urlStrings 58 - (instancetype)initWithURLStrings:(NSArray<NSString *> *)urlStrings
(...skipping 10 matching lines...) Expand all
66 tlsCertPolicy:(RTCTlsCertPolicy)tlsCertPolicy; 69 tlsCertPolicy:(RTCTlsCertPolicy)tlsCertPolicy;
67 70
68 /** 71 /**
69 * Initialize an RTCIceServer with its associated URLs, optional username, 72 * Initialize an RTCIceServer with its associated URLs, optional username,
70 * optional credential, TLS cert policy and hostname. 73 * optional credential, TLS cert policy and hostname.
71 */ 74 */
72 - (instancetype)initWithURLStrings:(NSArray<NSString *> *)urlStrings 75 - (instancetype)initWithURLStrings:(NSArray<NSString *> *)urlStrings
73 username:(nullable NSString *)username 76 username:(nullable NSString *)username
74 credential:(nullable NSString *)credential 77 credential:(nullable NSString *)credential
75 tlsCertPolicy:(RTCTlsCertPolicy)tlsCertPolicy 78 tlsCertPolicy:(RTCTlsCertPolicy)tlsCertPolicy
76 hostname:(nullable NSString *)hostname NS_DESIGNATED_I NITIALIZER; 79 hostname:(nullable NSString *)hostname;
80
81 /**
82 * Initialize an RTCIceServer with its associated URLs, optional username,
83 * optional credential, TLS cert policy, hostname and ALPN protocols.
84 */
85 - (instancetype)initWithURLStrings:(NSArray<NSString *> *)urlStrings
86 username:(nullable NSString *)username
87 credential:(nullable NSString *)credential
88 tlsCertPolicy:(RTCTlsCertPolicy)tlsCertPolicy
89 hostname:(nullable NSString *)hostname
90 tlsAlpnProtocols:(NSArray<NSString *> *)tlsAlpnProtocols
91 NS_DESIGNATED_INITIALIZER;
77 92
78 @end 93 @end
79 94
80 NS_ASSUME_NONNULL_END 95 NS_ASSUME_NONNULL_END
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698