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

Side by Side Diff: webrtc/api/objc/RTCPeerConnection.h

Issue 1820193002: Refactor some ObjC API init methods. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « webrtc/api/objc/RTCMediaStream+Private.h ('k') | webrtc/api/objc/RTCPeerConnection+Private.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 @property(nonatomic, readonly, nullable) 110 @property(nonatomic, readonly, nullable)
111 RTCSessionDescription *localDescription; 111 RTCSessionDescription *localDescription;
112 @property(nonatomic, readonly, nullable) 112 @property(nonatomic, readonly, nullable)
113 RTCSessionDescription *remoteDescription; 113 RTCSessionDescription *remoteDescription;
114 @property(nonatomic, readonly) RTCSignalingState signalingState; 114 @property(nonatomic, readonly) RTCSignalingState signalingState;
115 @property(nonatomic, readonly) RTCIceConnectionState iceConnectionState; 115 @property(nonatomic, readonly) RTCIceConnectionState iceConnectionState;
116 @property(nonatomic, readonly) RTCIceGatheringState iceGatheringState; 116 @property(nonatomic, readonly) RTCIceGatheringState iceGatheringState;
117 117
118 - (instancetype)init NS_UNAVAILABLE; 118 - (instancetype)init NS_UNAVAILABLE;
119 119
120 /** Initialize an RTCPeerConnection with a configuration, constraints, and
121 * delegate.
122 */
123 - (instancetype)initWithFactory:
124 (RTCPeerConnectionFactory *)factory
125 configuration:
126 (RTCConfiguration *)configuration
127 constraints:
128 (RTCMediaConstraints *)constraints
129 delegate:
130 (nullable id<RTCPeerConnectionDelegate>)delegate
131 NS_DESIGNATED_INITIALIZER;
132
133 /** Sets the PeerConnection's global configuration to |configuration|. 120 /** Sets the PeerConnection's global configuration to |configuration|.
134 * Any changes to STUN/TURN servers or ICE candidate policy will affect the 121 * Any changes to STUN/TURN servers or ICE candidate policy will affect the
135 * next gathering phase, and cause the next call to createOffer to generate 122 * next gathering phase, and cause the next call to createOffer to generate
136 * new ICE credentials. Note that the BUNDLE and RTCP-multiplexing policies 123 * new ICE credentials. Note that the BUNDLE and RTCP-multiplexing policies
137 * cannot be changed with this method. 124 * cannot be changed with this method.
138 */ 125 */
139 - (BOOL)setConfiguration:(RTCConfiguration *)configuration; 126 - (BOOL)setConfiguration:(RTCConfiguration *)configuration;
140 127
141 /** Terminate all media and close the transport. */ 128 /** Terminate all media and close the transport. */
142 - (void)close; 129 - (void)close;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 */ 176 */
190 - (void)statsForTrack: 177 - (void)statsForTrack:
191 (nullable RTCMediaStreamTrack *)mediaStreamTrack 178 (nullable RTCMediaStreamTrack *)mediaStreamTrack
192 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel 179 statsOutputLevel:(RTCStatsOutputLevel)statsOutputLevel
193 completionHandler: 180 completionHandler:
194 (nullable void (^)(NSArray<RTCStatsReport *> *stats))completionHandler; 181 (nullable void (^)(NSArray<RTCStatsReport *> *stats))completionHandler;
195 182
196 @end 183 @end
197 184
198 NS_ASSUME_NONNULL_END 185 NS_ASSUME_NONNULL_END
OLDNEW
« no previous file with comments | « webrtc/api/objc/RTCMediaStream+Private.h ('k') | webrtc/api/objc/RTCPeerConnection+Private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698