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

Unified Diff: webrtc/api/objc/RTCVideoSource.mm

Issue 1546783002: Move RTCVideoSource to webrtc/api/objc. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@updateRTCMediaSource
Patch Set: Update against master and updated RTCMediaSource 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
Index: webrtc/api/objc/RTCVideoSource.mm
diff --git a/webrtc/base/objc/NSString+StdString.h b/webrtc/api/objc/RTCVideoSource.mm
similarity index 54%
copy from webrtc/base/objc/NSString+StdString.h
copy to webrtc/api/objc/RTCVideoSource.mm
index 8bf6cc94be0346e398ab1a980af6378f06ccb7a5..0e11d0e0131f2eb111584b44647cc01d50902dfb 100644
--- a/webrtc/base/objc/NSString+StdString.h
+++ b/webrtc/api/objc/RTCVideoSource.mm
@@ -8,19 +8,18 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#import <Foundation/Foundation.h>
+#import "RTCVideoSource.h"
-#include <string>
+#import "webrtc/api/objc/RTCMediaSource+Private.h"
+#import "webrtc/api/objc/RTCVideoSource+Private.h"
-NS_ASSUME_NONNULL_BEGIN
+@implementation RTCVideoSource
-@interface NSString (StdString)
+#pragma mark - Private
-@property(nonatomic, readonly) std::string stdString;
-
-+ (std::string)stdStringForString:(NSString *)nsString;
-+ (NSString *)stringForStdString:(const std::string&)stdString;
+- (rtc::scoped_refptr<webrtc::VideoSourceInterface>)nativeVideoSource {
+ return
tkchin_webrtc 2016/01/11 21:32:34 nit: use a local var and return that instead to av
hjon 2016/01/11 22:45:08 Done.
+ static_cast<webrtc::VideoSourceInterface *>(self.nativeMediaSource.get());
+}
@end
-
-NS_ASSUME_NONNULL_END

Powered by Google App Engine
This is Rietveld 408576698