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

Side by Side Diff: webrtc/api/objc/RTCSessionDescription+Private.h

Issue 1524303006: Update API for Objective-C RTCSessionDescription. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@updateRTCIceCandidate
Patch Set: Rebase and add tests Created 5 years 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 "RTCIceCandidate.h" 11 #import "RTCSessionDescription.h"
12 12
13 #include "webrtc/base/scoped_ptr.h"
14 #include "talk/app/webrtc/jsep.h" 13 #include "talk/app/webrtc/jsep.h"
15 14
16 NS_ASSUME_NONNULL_BEGIN 15 NS_ASSUME_NONNULL_BEGIN
17 16
18 @interface RTCIceCandidate () 17 @interface RTCSessionDescription ()
19 18
20 /** 19 /**
21 * The native IceCandidateInterface representation of this RTCIceCandidate 20 * The native SessionDescriptionInterface representation of this
22 * object. This is needed to pass to the underlying C++ APIs. 21 * RTCSessionDescription object. This is needed to pass to the underlying C++
22 * APIs.
23 */ 23 */
24 @property(nonatomic, readonly) 24 @property(nonatomic, readonly)
25 rtc::scoped_ptr<webrtc::IceCandidateInterface> nativeCandidate; 25 webrtc::SessionDescriptionInterface *nativeDescription;
26 26
27 /** 27 /**
28 * Initialize an RTCIceCandidate from a native IceCandidateInterface. No 28 * Initialize an RTCSessionDescription from a native
29 * ownership is taken of the native candidate. 29 * SessionDescriptionInterface. No ownership is taken of the native session
30 * description.
30 */ 31 */
31 - (instancetype)initWithCandidate:(webrtc::IceCandidateInterface *)candidate; 32 - (instancetype)initWithDescription:(webrtc::SessionDescriptionInterface *)
tkchin_webrtc 2016/01/05 16:29:18 ditto break after :
hjon 2016/01/05 22:16:20 Done.
33 description;
32 34
33 @end 35 @end
34 36
35 NS_ASSUME_NONNULL_END 37 NS_ASSUME_NONNULL_END
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698