OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // VideoCaptureManager is used to open/close, start/stop, enumerate available | 5 // VideoCaptureManager is used to open/close, start/stop, enumerate available |
6 // video capture devices, and manage VideoCaptureController's. | 6 // video capture devices, and manage VideoCaptureController's. |
7 // All functions are expected to be called from Browser::IO thread. Some helper | 7 // All functions are expected to be called from Browser::IO thread. Some helper |
8 // functions (*OnDeviceThread) will dispatch operations to the device thread. | 8 // functions (*OnDeviceThread) will dispatch operations to the device thread. |
9 // VideoCaptureManager will open OS dependent instances of VideoCaptureDevice. | 9 // VideoCaptureManager will open OS dependent instances of VideoCaptureDevice. |
10 // A device can only be opened once. | 10 // A device can only be opened once. |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "base/memory/scoped_vector.h" | 21 #include "base/memory/scoped_vector.h" |
22 #include "base/memory/weak_ptr.h" | 22 #include "base/memory/weak_ptr.h" |
23 #include "base/message_loop/message_loop.h" | 23 #include "base/message_loop/message_loop.h" |
24 #include "base/process/process_handle.h" | 24 #include "base/process/process_handle.h" |
25 #include "base/threading/thread_checker.h" | 25 #include "base/threading/thread_checker.h" |
26 #include "base/timer/elapsed_timer.h" | 26 #include "base/timer/elapsed_timer.h" |
27 #include "content/browser/renderer_host/media/media_stream_provider.h" | 27 #include "content/browser/renderer_host/media/media_stream_provider.h" |
28 #include "content/browser/renderer_host/media/video_capture_controller_event_han
dler.h" | 28 #include "content/browser/renderer_host/media/video_capture_controller_event_han
dler.h" |
29 #include "content/common/content_export.h" | 29 #include "content/common/content_export.h" |
30 #include "content/common/media/media_stream_options.h" | 30 #include "content/common/media/media_stream_options.h" |
| 31 #include "media/base/video_capture_types.h" |
31 #include "media/video/capture/video_capture_device.h" | 32 #include "media/video/capture/video_capture_device.h" |
32 #include "media/video/capture/video_capture_device_factory.h" | 33 #include "media/video/capture/video_capture_device_factory.h" |
33 #include "media/video/capture/video_capture_device_info.h" | 34 #include "media/video/capture/video_capture_device_info.h" |
34 #include "media/video/capture/video_capture_types.h" | |
35 | 35 |
36 namespace content { | 36 namespace content { |
37 class VideoCaptureController; | 37 class VideoCaptureController; |
38 class VideoCaptureControllerEventHandler; | 38 class VideoCaptureControllerEventHandler; |
39 | 39 |
40 // VideoCaptureManager opens/closes and start/stops video capture devices. | 40 // VideoCaptureManager opens/closes and start/stops video capture devices. |
41 class CONTENT_EXPORT VideoCaptureManager : public MediaStreamProvider { | 41 class CONTENT_EXPORT VideoCaptureManager : public MediaStreamProvider { |
42 public: | 42 public: |
43 // Callback used to signal the completion of a controller lookup. | 43 // Callback used to signal the completion of a controller lookup. |
44 typedef base::Callback< | 44 typedef base::Callback< |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 // Map used by DesktopCapture. | 324 // Map used by DesktopCapture. |
325 std::map<media::VideoCaptureSessionId, gfx::NativeViewId> | 325 std::map<media::VideoCaptureSessionId, gfx::NativeViewId> |
326 notification_window_ids_; | 326 notification_window_ids_; |
327 | 327 |
328 DISALLOW_COPY_AND_ASSIGN(VideoCaptureManager); | 328 DISALLOW_COPY_AND_ASSIGN(VideoCaptureManager); |
329 }; | 329 }; |
330 | 330 |
331 } // namespace content | 331 } // namespace content |
332 | 332 |
333 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_MANAGER_H_ | 333 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_MANAGER_H_ |
OLD | NEW |