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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/api/objc/RTCSessionDescription+Private.h
diff --git a/webrtc/api/objc/RTCIceCandidate+Private.h b/webrtc/api/objc/RTCSessionDescription+Private.h
similarity index 51%
copy from webrtc/api/objc/RTCIceCandidate+Private.h
copy to webrtc/api/objc/RTCSessionDescription+Private.h
index feb3898e5d5a523f3989647aaf19300753c09e06..7eca1ac3ec958f8e51f78c4fb5648a40c6af192d 100644
--- a/webrtc/api/objc/RTCIceCandidate+Private.h
+++ b/webrtc/api/objc/RTCSessionDescription+Private.h
@@ -8,27 +8,29 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#import "RTCIceCandidate.h"
+#import "RTCSessionDescription.h"
-#include "webrtc/base/scoped_ptr.h"
#include "talk/app/webrtc/jsep.h"
NS_ASSUME_NONNULL_BEGIN
-@interface RTCIceCandidate ()
+@interface RTCSessionDescription ()
/**
- * The native IceCandidateInterface representation of this RTCIceCandidate
- * object. This is needed to pass to the underlying C++ APIs.
+ * The native SessionDescriptionInterface representation of this
+ * RTCSessionDescription object. This is needed to pass to the underlying C++
+ * APIs.
*/
@property(nonatomic, readonly)
- rtc::scoped_ptr<webrtc::IceCandidateInterface> nativeCandidate;
+ webrtc::SessionDescriptionInterface *nativeDescription;
/**
- * Initialize an RTCIceCandidate from a native IceCandidateInterface. No
- * ownership is taken of the native candidate.
+ * Initialize an RTCSessionDescription from a native
+ * SessionDescriptionInterface. No ownership is taken of the native session
+ * description.
*/
-- (instancetype)initWithCandidate:(webrtc::IceCandidateInterface *)candidate;
+- (instancetype)initWithDescription:(webrtc::SessionDescriptionInterface *)
tkchin_webrtc 2016/01/05 16:29:18 ditto break after :
hjon 2016/01/05 22:16:20 Done.
+ description;
@end

Powered by Google App Engine
This is Rietveld 408576698