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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_MODULES_VIDEO_CAPTURE_IOS_VIDEO_CAPTURE_IOS_H_ 11 #ifndef WEBRTC_MODULES_VIDEO_CAPTURE_IOS_VIDEO_CAPTURE_IOS_H_
12 #define WEBRTC_MODULES_VIDEO_CAPTURE_IOS_VIDEO_CAPTURE_IOS_H_ 12 #define WEBRTC_MODULES_VIDEO_CAPTURE_IOS_VIDEO_CAPTURE_IOS_H_
13 13
14 #include "webrtc/base/scoped_ref_ptr.h"
14 #include "webrtc/modules/video_capture/video_capture_impl.h" 15 #include "webrtc/modules/video_capture/video_capture_impl.h"
15 16
16 @class RTCVideoCaptureIosObjC; 17 @class RTCVideoCaptureIosObjC;
17 18
18 namespace webrtc { 19 namespace webrtc {
19 namespace videocapturemodule { 20 namespace videocapturemodule {
20 class VideoCaptureIos : public VideoCaptureImpl { 21 class VideoCaptureIos : public VideoCaptureImpl {
21 public: 22 public:
22 explicit VideoCaptureIos(const int32_t capture_id); 23 explicit VideoCaptureIos(const int32_t capture_id);
23 virtual ~VideoCaptureIos(); 24 virtual ~VideoCaptureIos();
24 25
25 static VideoCaptureModule* Create(const int32_t capture_id, 26 static rtc::scoped_refptr<VideoCaptureModule> Create(
26 const char* device_unique_id_utf8); 27 const int32_t capture_id,
28 const char* device_unique_id_utf8);
27 29
28 // Implementation of VideoCaptureImpl. 30 // Implementation of VideoCaptureImpl.
29 int32_t StartCapture(const VideoCaptureCapability& capability) override; 31 int32_t StartCapture(const VideoCaptureCapability& capability) override;
30 int32_t StopCapture() override; 32 int32_t StopCapture() override;
31 bool CaptureStarted() override; 33 bool CaptureStarted() override;
32 int32_t CaptureSettings(VideoCaptureCapability& settings) override; 34 int32_t CaptureSettings(VideoCaptureCapability& settings) override;
33 35
34 private: 36 private:
35 RTCVideoCaptureIosObjC* capture_device_; 37 RTCVideoCaptureIosObjC* capture_device_;
36 bool is_capturing_; 38 bool is_capturing_;
37 int32_t id_; 39 int32_t id_;
38 VideoCaptureCapability capability_; 40 VideoCaptureCapability capability_;
39 }; 41 };
40 42
41 } // namespace videocapturemodule 43 } // namespace videocapturemodule
42 } // namespace webrtc 44 } // namespace webrtc
43 45
44 #endif // WEBRTC_MODULES_VIDEO_CAPTURE_IOS_VIDEO_CAPTURE_IOS_H_ 46 #endif // WEBRTC_MODULES_VIDEO_CAPTURE_IOS_VIDEO_CAPTURE_IOS_H_
OLDNEW
« 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