Reason for revert: Breaks user code. Said code needs to stop using scoped_ptr! Original issue's description: > Remove webrtc/base/scoped_ptr.h > > BUG=webrtc:5520 > > NOTRY=True > > Committed: https://crrev.com/65fc62e9dd8a8716db625aaef76ab92f542ecc5a > Cr-Commit-Position: refs/heads/master@{#12684} TBR=tommi@webrtc.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=webrtc:5520 Review-Url: https://codereview.webrtc.org/1965063003 Cr-Commit-Position: refs/heads/master@{#12686}
39 lines
1.1 KiB
Objective-C
39 lines
1.1 KiB
Objective-C
/*
|
|
* Copyright 2015 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#import "WebRTC/RTCIceCandidate.h"
|
|
|
|
#include <memory>
|
|
|
|
#include "webrtc/api/jsep.h"
|
|
#include "webrtc/base/scoped_ptr.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface RTCIceCandidate ()
|
|
|
|
/**
|
|
* The native IceCandidateInterface representation of this RTCIceCandidate
|
|
* object. This is needed to pass to the underlying C++ APIs.
|
|
*/
|
|
@property(nonatomic, readonly)
|
|
std::unique_ptr<webrtc::IceCandidateInterface> nativeCandidate;
|
|
|
|
/**
|
|
* Initialize an RTCIceCandidate from a native IceCandidateInterface. No
|
|
* ownership is taken of the native candidate.
|
|
*/
|
|
- (instancetype)initWithNativeCandidate:
|
|
(const webrtc::IceCandidateInterface *)candidate;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|