| 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 11 matching lines...) Expand all Loading... |
| 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 "build/build_config.h" | 27 #include "build/build_config.h" |
| 28 #include "content/browser/renderer_host/media/media_stream_provider.h" | 28 #include "content/browser/renderer_host/media/media_stream_provider.h" |
| 29 #include "content/browser/renderer_host/media/video_capture_controller_event_han
dler.h" | 29 #include "content/browser/renderer_host/media/video_capture_controller_event_han
dler.h" |
| 30 #include "content/common/content_export.h" | 30 #include "content/common/content_export.h" |
| 31 #include "content/common/media/media_stream_options.h" | 31 #include "content/common/media/media_stream_options.h" |
| 32 #include "device/capture/video/video_capture_device.h" |
| 33 #include "device/capture/video/video_capture_device_factory.h" |
| 34 #include "device/capture/video/video_capture_device_info.h" |
| 32 #include "media/base/video_capture_types.h" | 35 #include "media/base/video_capture_types.h" |
| 33 #include "media/capture/video/video_capture_device.h" | |
| 34 #include "media/capture/video/video_capture_device_factory.h" | |
| 35 #include "media/capture/video/video_capture_device_info.h" | |
| 36 | 36 |
| 37 #if defined(OS_ANDROID) | 37 #if defined(OS_ANDROID) |
| 38 #include "base/android/application_status_listener.h" | 38 #include "base/android/application_status_listener.h" |
| 39 #endif | 39 #endif |
| 40 | 40 |
| 41 namespace content { | 41 namespace content { |
| 42 class VideoCaptureController; | 42 class VideoCaptureController; |
| 43 class VideoCaptureControllerEventHandler; | 43 class VideoCaptureControllerEventHandler; |
| 44 | 44 |
| 45 // VideoCaptureManager opens/closes and start/stops video capture devices. | 45 // VideoCaptureManager opens/closes and start/stops video capture devices. |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 // Map used by DesktopCapture. | 340 // Map used by DesktopCapture. |
| 341 std::map<media::VideoCaptureSessionId, gfx::NativeViewId> | 341 std::map<media::VideoCaptureSessionId, gfx::NativeViewId> |
| 342 notification_window_ids_; | 342 notification_window_ids_; |
| 343 | 343 |
| 344 DISALLOW_COPY_AND_ASSIGN(VideoCaptureManager); | 344 DISALLOW_COPY_AND_ASSIGN(VideoCaptureManager); |
| 345 }; | 345 }; |
| 346 | 346 |
| 347 } // namespace content | 347 } // namespace content |
| 348 | 348 |
| 349 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_MANAGER_H_ | 349 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_MANAGER_H_ |
| OLD | NEW |