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

Unified Diff: webrtc/modules/video_capture/ios/video_capture_ios.h

Issue 1477013005: Replace RefCountImpl with rtc::RefCountedObject. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: add back explicit Release()s in test Created 4 years, 9 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/modules/video_capture/ios/video_capture_ios.h
diff --git a/webrtc/modules/video_capture/ios/video_capture_ios.h b/webrtc/modules/video_capture/ios/video_capture_ios.h
index 1afcbaddf5d3d35f67a6cd830a7e863b9f2d5e1f..51728551615a21f9d40a1159e7f2c3fedb77921f 100644
--- a/webrtc/modules/video_capture/ios/video_capture_ios.h
+++ b/webrtc/modules/video_capture/ios/video_capture_ios.h
@@ -11,6 +11,7 @@
#ifndef WEBRTC_MODULES_VIDEO_CAPTURE_IOS_VIDEO_CAPTURE_IOS_H_
#define WEBRTC_MODULES_VIDEO_CAPTURE_IOS_VIDEO_CAPTURE_IOS_H_
+#include "webrtc/base/scoped_ref_ptr.h"
#include "webrtc/modules/video_capture/video_capture_impl.h"
@class RTCVideoCaptureIosObjC;
@@ -22,8 +23,9 @@ class VideoCaptureIos : public VideoCaptureImpl {
explicit VideoCaptureIos(const int32_t capture_id);
virtual ~VideoCaptureIos();
- static VideoCaptureModule* Create(const int32_t capture_id,
- const char* device_unique_id_utf8);
+ static rtc::scoped_refptr<VideoCaptureModule> Create(
+ const int32_t capture_id,
+ const char* device_unique_id_utf8);
// Implementation of VideoCaptureImpl.
int32_t StartCapture(const VideoCaptureCapability& capability) override;
« no previous file with comments | « webrtc/modules/video_capture/external/video_capture_external.cc ('k') | webrtc/modules/video_capture/ios/video_capture_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698