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

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

Issue 1778033002: Minor ObjC API tweaks. (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/RTCPeerConnection.h ('k') | webrtc/api/objc/RTCStatsReport.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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 - (RTCIceConnectionState)iceConnectionState { 241 - (RTCIceConnectionState)iceConnectionState {
242 return [[self class] iceConnectionStateForNativeState: 242 return [[self class] iceConnectionStateForNativeState:
243 _peerConnection->ice_connection_state()]; 243 _peerConnection->ice_connection_state()];
244 } 244 }
245 245
246 - (RTCIceGatheringState)iceGatheringState { 246 - (RTCIceGatheringState)iceGatheringState {
247 return [[self class] iceGatheringStateForNativeState: 247 return [[self class] iceGatheringStateForNativeState:
248 _peerConnection->ice_gathering_state()]; 248 _peerConnection->ice_gathering_state()];
249 } 249 }
250 250
251 - (BOOL)setConfiguration:(RTCConfiguration *)configuration {
252 return _peerConnection->SetConfiguration(configuration.nativeConfiguration);
253 }
254
251 - (void)close { 255 - (void)close {
252 _peerConnection->Close(); 256 _peerConnection->Close();
253 } 257 }
254 258
255 - (void)addIceCandidate:(RTCIceCandidate *)candidate { 259 - (void)addIceCandidate:(RTCIceCandidate *)candidate {
256 rtc::scoped_ptr<const webrtc::IceCandidateInterface> iceCandidate( 260 rtc::scoped_ptr<const webrtc::IceCandidateInterface> iceCandidate(
257 candidate.nativeCandidate); 261 candidate.nativeCandidate);
258 _peerConnection->AddIceCandidate(iceCandidate.get()); 262 _peerConnection->AddIceCandidate(iceCandidate.get());
259 } 263 }
260 264
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 case RTCStatsOutputLevelDebug: 474 case RTCStatsOutputLevelDebug:
471 return webrtc::PeerConnectionInterface::kStatsOutputLevelDebug; 475 return webrtc::PeerConnectionInterface::kStatsOutputLevelDebug;
472 } 476 }
473 } 477 }
474 478
475 - (rtc::scoped_refptr<webrtc::PeerConnectionInterface>)nativePeerConnection { 479 - (rtc::scoped_refptr<webrtc::PeerConnectionInterface>)nativePeerConnection {
476 return _peerConnection; 480 return _peerConnection;
477 } 481 }
478 482
479 @end 483 @end
OLDNEW
« no previous file with comments | « webrtc/api/objc/RTCPeerConnection.h ('k') | webrtc/api/objc/RTCStatsReport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698