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

Side by Side Diff: media/capture/video/video_capture_device_factory.h

Issue 2059493002: Revert of Make media/capture gn and gyps produce components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_FACTORY_H_ 5 #ifndef MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_FACTORY_H_
6 #define MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_FACTORY_H_ 6 #define MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_FACTORY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/threading/thread_checker.h" 9 #include "base/threading/thread_checker.h"
10 #include "media/capture/video/video_capture_device.h" 10 #include "media/capture/video/video_capture_device.h"
11 11
12 namespace media { 12 namespace media {
13 13
14 // VideoCaptureDeviceFactory is the base class for creation of video capture 14 // VideoCaptureDeviceFactory is the base class for creation of video capture
15 // devices in the different platforms. VCDFs are created by MediaStreamManager 15 // devices in the different platforms. VCDFs are created by MediaStreamManager
16 // on IO thread and plugged into VideoCaptureManager, who owns and operates them 16 // on IO thread and plugged into VideoCaptureManager, who owns and operates them
17 // in Device Thread (a.k.a. Audio Thread). 17 // in Device Thread (a.k.a. Audio Thread).
18 class CAPTURE_EXPORT VideoCaptureDeviceFactory { 18 class MEDIA_EXPORT VideoCaptureDeviceFactory {
19 public: 19 public:
20 static std::unique_ptr<VideoCaptureDeviceFactory> CreateFactory( 20 static std::unique_ptr<VideoCaptureDeviceFactory> CreateFactory(
21 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); 21 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
22 22
23 VideoCaptureDeviceFactory(); 23 VideoCaptureDeviceFactory();
24 virtual ~VideoCaptureDeviceFactory(); 24 virtual ~VideoCaptureDeviceFactory();
25 25
26 // Creates a VideoCaptureDevice object. Returns NULL if something goes wrong. 26 // Creates a VideoCaptureDevice object. Returns NULL if something goes wrong.
27 virtual std::unique_ptr<VideoCaptureDevice> Create( 27 virtual std::unique_ptr<VideoCaptureDevice> Create(
28 const VideoCaptureDevice::Name& device_name) = 0; 28 const VideoCaptureDevice::Name& device_name) = 0;
(...skipping 21 matching lines...) Expand all
50 private: 50 private:
51 static VideoCaptureDeviceFactory* CreateVideoCaptureDeviceFactory( 51 static VideoCaptureDeviceFactory* CreateVideoCaptureDeviceFactory(
52 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); 52 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
53 53
54 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceFactory); 54 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceFactory);
55 }; 55 };
56 56
57 } // namespace media 57 } // namespace media
58 58
59 #endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_FACTORY_H_ 59 #endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_FACTORY_H_
OLDNEW
« no previous file with comments | « media/capture/video/video_capture_device.h ('k') | media/capture/video/video_capture_device_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698