| OLD | NEW |
| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 } // namespace webrtc | 52 } // namespace webrtc |
| 53 | 53 |
| 54 | 54 |
| 55 @interface RTCPeerConnection () | 55 @interface RTCPeerConnection () |
| 56 | 56 |
| 57 /** The native PeerConnectionInterface created during construction. */ | 57 /** The native PeerConnectionInterface created during construction. */ |
| 58 @property(nonatomic, readonly) | 58 @property(nonatomic, readonly) |
| 59 rtc::scoped_refptr<webrtc::PeerConnectionInterface> nativePeerConnection; | 59 rtc::scoped_refptr<webrtc::PeerConnectionInterface> nativePeerConnection; |
| 60 | 60 |
| 61 /** Initialize an RTCPeerConnection with a configuration, constraints, and |
| 62 * delegate. |
| 63 */ |
| 64 - (instancetype)initWithFactory: |
| 65 (RTCPeerConnectionFactory *)factory |
| 66 configuration: |
| 67 (RTCConfiguration *)configuration |
| 68 constraints: |
| 69 (RTCMediaConstraints *)constraints |
| 70 delegate: |
| 71 (nullable id<RTCPeerConnectionDelegate>)delegate |
| 72 NS_DESIGNATED_INITIALIZER; |
| 73 |
| 61 + (webrtc::PeerConnectionInterface::SignalingState)nativeSignalingStateForState: | 74 + (webrtc::PeerConnectionInterface::SignalingState)nativeSignalingStateForState: |
| 62 (RTCSignalingState)state; | 75 (RTCSignalingState)state; |
| 63 | 76 |
| 64 + (RTCSignalingState)signalingStateForNativeState: | 77 + (RTCSignalingState)signalingStateForNativeState: |
| 65 (webrtc::PeerConnectionInterface::SignalingState)nativeState; | 78 (webrtc::PeerConnectionInterface::SignalingState)nativeState; |
| 66 | 79 |
| 67 + (NSString *)stringForSignalingState:(RTCSignalingState)state; | 80 + (NSString *)stringForSignalingState:(RTCSignalingState)state; |
| 68 | 81 |
| 69 + (webrtc::PeerConnectionInterface::IceConnectionState) | 82 + (webrtc::PeerConnectionInterface::IceConnectionState) |
| 70 nativeIceConnectionStateForState:(RTCIceConnectionState)state; | 83 nativeIceConnectionStateForState:(RTCIceConnectionState)state; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 81 (webrtc::PeerConnectionInterface::IceGatheringState)nativeState; | 94 (webrtc::PeerConnectionInterface::IceGatheringState)nativeState; |
| 82 | 95 |
| 83 + (NSString *)stringForIceGatheringState:(RTCIceGatheringState)state; | 96 + (NSString *)stringForIceGatheringState:(RTCIceGatheringState)state; |
| 84 | 97 |
| 85 + (webrtc::PeerConnectionInterface::StatsOutputLevel) | 98 + (webrtc::PeerConnectionInterface::StatsOutputLevel) |
| 86 nativeStatsOutputLevelForLevel:(RTCStatsOutputLevel)level; | 99 nativeStatsOutputLevelForLevel:(RTCStatsOutputLevel)level; |
| 87 | 100 |
| 88 @end | 101 @end |
| 89 | 102 |
| 90 NS_ASSUME_NONNULL_END | 103 NS_ASSUME_NONNULL_END |
| OLD | NEW |