OLD | NEW |
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/single_thread_task_runner.h" |
9 #include "base/threading/thread_checker.h" | 10 #include "base/threading/thread_checker.h" |
10 #include "media/capture/video/video_capture_device.h" | 11 #include "media/capture/video/video_capture_device.h" |
11 | 12 |
12 namespace media { | 13 namespace media { |
13 | 14 |
14 // VideoCaptureDeviceFactory is the base class for creation of video capture | 15 // VideoCaptureDeviceFactory is the base class for creation of video capture |
15 // devices in the different platforms. VCDFs are created by MediaStreamManager | 16 // devices in the different platforms. VCDFs are created by MediaStreamManager |
16 // on IO thread and plugged into VideoCaptureManager, who owns and operates them | 17 // on IO thread and plugged into VideoCaptureManager, who owns and operates them |
17 // in Device Thread (a.k.a. Audio Thread). | 18 // in Device Thread (a.k.a. Audio Thread). |
18 // Typical operation is to first call GetDeviceDescriptors() to obtain | 19 // Typical operation is to first call GetDeviceDescriptors() to obtain |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 private: | 57 private: |
57 static VideoCaptureDeviceFactory* CreateVideoCaptureDeviceFactory( | 58 static VideoCaptureDeviceFactory* CreateVideoCaptureDeviceFactory( |
58 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); | 59 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); |
59 | 60 |
60 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceFactory); | 61 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceFactory); |
61 }; | 62 }; |
62 | 63 |
63 } // namespace media | 64 } // namespace media |
64 | 65 |
65 #endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_FACTORY_H_ | 66 #endif // MEDIA_CAPTURE_VIDEO_VIDEO_CAPTURE_DEVICE_FACTORY_H_ |
OLD | NEW |