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

Side by Side Diff: webrtc/sdk/objc/Framework/Classes/RTCPeerConnection.mm

Issue 2794193002: [iOS] Changed ptr to const ref for RTCConfiguration initialization (Closed)
Patch Set: Created 3 years, 8 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 return NO; 284 return NO;
285 } 285 }
286 CopyConstraintsIntoRtcConfiguration(_nativeConstraints.get(), 286 CopyConstraintsIntoRtcConfiguration(_nativeConstraints.get(),
287 config.get()); 287 config.get());
288 return _peerConnection->SetConfiguration(*config); 288 return _peerConnection->SetConfiguration(*config);
289 } 289 }
290 290
291 - (RTCConfiguration *)configuration { 291 - (RTCConfiguration *)configuration {
292 webrtc::PeerConnectionInterface::RTCConfiguration config = 292 webrtc::PeerConnectionInterface::RTCConfiguration config =
293 _peerConnection->GetConfiguration(); 293 _peerConnection->GetConfiguration();
294 return [[RTCConfiguration alloc] initWithNativeConfiguration:&config]; 294 return [[RTCConfiguration alloc] initWithNativeConfiguration:config];
295 } 295 }
296 296
297 - (void)close { 297 - (void)close {
298 _peerConnection->Close(); 298 _peerConnection->Close();
299 } 299 }
300 300
301 - (void)addIceCandidate:(RTCIceCandidate *)candidate { 301 - (void)addIceCandidate:(RTCIceCandidate *)candidate {
302 std::unique_ptr<const webrtc::IceCandidateInterface> iceCandidate( 302 std::unique_ptr<const webrtc::IceCandidateInterface> iceCandidate(
303 candidate.nativeCandidate); 303 candidate.nativeCandidate);
304 _peerConnection->AddIceCandidate(iceCandidate.get()); 304 _peerConnection->AddIceCandidate(iceCandidate.get());
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 case RTCStatsOutputLevelDebug: 592 case RTCStatsOutputLevelDebug:
593 return webrtc::PeerConnectionInterface::kStatsOutputLevelDebug; 593 return webrtc::PeerConnectionInterface::kStatsOutputLevelDebug;
594 } 594 }
595 } 595 }
596 596
597 - (rtc::scoped_refptr<webrtc::PeerConnectionInterface>)nativePeerConnection { 597 - (rtc::scoped_refptr<webrtc::PeerConnectionInterface>)nativePeerConnection {
598 return _peerConnection; 598 return _peerConnection;
599 } 599 }
600 600
601 @end 601 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698