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 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/objc/RTCVideoSource.h ('k') | webrtc/api/objc/RTCVideoSource+Private.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/objc/RTCVideoSource.mm
diff --git a/webrtc/api/objc/RTCMediaSource.mm b/webrtc/api/objc/RTCVideoSource.mm
similarity index 76%
rename from webrtc/api/objc/RTCMediaSource.mm
rename to webrtc/api/objc/RTCVideoSource.mm
index 5f46ab831891bf243a82cba0173fc94e526f31d2..35f30e3b38b02d1f937f0bff2b5f913fd2d9a36c 100644
--- a/webrtc/api/objc/RTCMediaSource.mm
+++ b/webrtc/api/objc/RTCVideoSource.mm
@@ -8,34 +8,34 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#import "RTCMediaSource.h"
+#import "RTCVideoSource.h"
-#import "webrtc/api/objc/RTCMediaSource+Private.h"
+#import "webrtc/api/objc/RTCVideoSource+Private.h"
-@implementation RTCMediaSource {
- rtc::scoped_refptr<webrtc::MediaSourceInterface> _nativeMediaSource;
+@implementation RTCVideoSource {
+ rtc::scoped_refptr<webrtc::VideoSourceInterface> _nativeVideoSource;
}
- (RTCSourceState)state {
- return [[self class] sourceStateForNativeState:_nativeMediaSource->state()];
+ return [[self class] sourceStateForNativeState:_nativeVideoSource->state()];
}
- (NSString *)description {
- return [NSString stringWithFormat:@"RTCMediaSource:\n%@",
+ return [NSString stringWithFormat:@"RTCVideoSource:\n%@",
[[self class] stringForState:self.state]];
}
#pragma mark - Private
-- (rtc::scoped_refptr<webrtc::MediaSourceInterface>)nativeMediaSource {
- return _nativeMediaSource;
+- (rtc::scoped_refptr<webrtc::VideoSourceInterface>)nativeVideoSource {
+ return _nativeVideoSource;
}
-- (instancetype)initWithNativeMediaSource:
- (rtc::scoped_refptr<webrtc::MediaSourceInterface>)nativeMediaSource {
- NSParameterAssert(nativeMediaSource);
+- (instancetype)initWithNativeVideoSource:
+ (rtc::scoped_refptr<webrtc::VideoSourceInterface>)nativeVideoSource {
+ NSParameterAssert(nativeVideoSource);
if (self = [super init]) {
- _nativeMediaSource = nativeMediaSource;
+ _nativeVideoSource = nativeVideoSource;
}
return self;
}
« no previous file with comments | « webrtc/api/objc/RTCVideoSource.h ('k') | webrtc/api/objc/RTCVideoSource+Private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698