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

Side by Side Diff: webrtc/sdk/objc/Framework/Classes/RTCIceCandidate+Private.h

Issue 1937693002: Replace scoped_ptr with unique_ptr everywhere (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@unique5
Patch Set: Created 4 years, 7 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
11 #import "WebRTC/RTCIceCandidate.h" 11 #import "WebRTC/RTCIceCandidate.h"
12 12
13 #include <memory>
14
13 #include "webrtc/api/jsep.h" 15 #include "webrtc/api/jsep.h"
14 #include "webrtc/base/scoped_ptr.h" 16 #include "webrtc/base/scoped_ptr.h"
15 17
16 NS_ASSUME_NONNULL_BEGIN 18 NS_ASSUME_NONNULL_BEGIN
17 19
18 @interface RTCIceCandidate () 20 @interface RTCIceCandidate ()
19 21
20 /** 22 /**
21 * The native IceCandidateInterface representation of this RTCIceCandidate 23 * The native IceCandidateInterface representation of this RTCIceCandidate
22 * object. This is needed to pass to the underlying C++ APIs. 24 * object. This is needed to pass to the underlying C++ APIs.
23 */ 25 */
24 @property(nonatomic, readonly) 26 @property(nonatomic, readonly)
25 rtc::scoped_ptr<webrtc::IceCandidateInterface> nativeCandidate; 27 std::unique_ptr<webrtc::IceCandidateInterface> nativeCandidate;
26 28
27 /** 29 /**
28 * Initialize an RTCIceCandidate from a native IceCandidateInterface. No 30 * Initialize an RTCIceCandidate from a native IceCandidateInterface. No
29 * ownership is taken of the native candidate. 31 * ownership is taken of the native candidate.
30 */ 32 */
31 - (instancetype)initWithNativeCandidate: 33 - (instancetype)initWithNativeCandidate:
32 (const webrtc::IceCandidateInterface *)candidate; 34 (const webrtc::IceCandidateInterface *)candidate;
33 35
34 @end 36 @end
35 37
36 NS_ASSUME_NONNULL_END 38 NS_ASSUME_NONNULL_END
OLDNEW
« no previous file with comments | « webrtc/sdk/objc/Framework/Classes/RTCIceCandidate.mm ('k') | webrtc/sdk/objc/Framework/Classes/RTCMediaConstraints.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698