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

Unified Diff: webrtc/api/objc/RTCMediaConstraints.h

Issue 1543033003: Update API for Objective-C RTCMediaConstraints. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@updateRTCIceCandidate
Patch Set: Use scoped_ptr Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/api/api_tests.gyp ('k') | webrtc/api/objc/RTCMediaConstraints.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/objc/RTCMediaConstraints.h
diff --git a/webrtc/base/objc/NSString+StdString.h b/webrtc/api/objc/RTCMediaConstraints.h
similarity index 56%
copy from webrtc/base/objc/NSString+StdString.h
copy to webrtc/api/objc/RTCMediaConstraints.h
index 8bf6cc94be0346e398ab1a980af6378f06ccb7a5..a8ad39142e39449d75e9b7b40bad09fb2c421124 100644
--- a/webrtc/base/objc/NSString+StdString.h
+++ b/webrtc/api/objc/RTCMediaConstraints.h
@@ -10,16 +10,18 @@
#import <Foundation/Foundation.h>
-#include <string>
-
NS_ASSUME_NONNULL_BEGIN
-@interface NSString (StdString)
+@interface RTCMediaConstraints : NSObject
-@property(nonatomic, readonly) std::string stdString;
+- (instancetype)init NS_UNAVAILABLE;
-+ (std::string)stdStringForString:(NSString *)nsString;
-+ (NSString *)stringForStdString:(const std::string&)stdString;
+/** Initialize with mandatory and/or optional constraints. */
+- (instancetype)initWithMandatoryConstraints:
+ (nullable NSDictionary<NSString *, NSString *> *)mandatory
+ optionalConstraints:
+ (nullable NSDictionary<NSString *, NSString *> *)optional
+ NS_DESIGNATED_INITIALIZER;
@end
« no previous file with comments | « webrtc/api/api_tests.gyp ('k') | webrtc/api/objc/RTCMediaConstraints.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698