Index: content/browser/renderer_host/media/video_capture_manager.h |
diff --git a/content/browser/renderer_host/media/video_capture_manager.h b/content/browser/renderer_host/media/video_capture_manager.h |
index 0021c1e4036b7325d04d0ced58d68e40f5257612..f53ddc78e430944b68d06f55dd56db3a1d4b00b6 100644 |
--- a/content/browser/renderer_host/media/video_capture_manager.h |
+++ b/content/browser/renderer_host/media/video_capture_manager.h |
@@ -26,15 +26,14 @@ |
#include "base/threading/thread_checker.h" |
#include "base/timer/elapsed_timer.h" |
#include "build/build_config.h" |
-#include "content/browser/renderer_host/media/buildable_video_capture_device.h" |
#include "content/browser/renderer_host/media/media_stream_provider.h" |
#include "content/browser/renderer_host/media/video_capture_controller_event_handler.h" |
+#include "content/browser/renderer_host/media/video_capture_provider.h" |
#include "content/common/content_export.h" |
#include "content/common/media/media_stream_options.h" |
#include "media/base/video_facing.h" |
#include "media/capture/video/video_capture_device.h" |
#include "media/capture/video/video_capture_device_info.h" |
-#include "media/capture/video/video_capture_system.h" |
#include "media/capture/video_capture_types.h" |
#if defined(OS_ANDROID) |
@@ -56,9 +55,8 @@ class CONTENT_EXPORT VideoCaptureManager |
using DoneCB = |
base::Callback<void(const base::WeakPtr<VideoCaptureController>&)>; |
- VideoCaptureManager( |
- std::unique_ptr<media::VideoCaptureSystem> capture_system, |
- scoped_refptr<base::SingleThreadTaskRunner> device_task_runner); |
+ explicit VideoCaptureManager( |
+ std::unique_ptr<VideoCaptureProvider> video_capture_provider); |
// AddVideoCaptureObserver() can be called only before any devices are opened. |
// RemoveAllVideoCaptureObservers() can be called only after all devices |
@@ -267,9 +265,6 @@ class CONTENT_EXPORT VideoCaptureManager |
bool application_state_has_running_activities_; |
#endif |
- // The message loop of media stream device thread, where VCD's live. |
- scoped_refptr<base::SingleThreadTaskRunner> device_task_runner_; |
- |
// Only accessed on Browser::IO thread. |
base::ObserverList<MediaStreamProviderListener> listeners_; |
media::VideoCaptureSessionId new_capture_session_id_; |
@@ -292,9 +287,7 @@ class CONTENT_EXPORT VideoCaptureManager |
// bundles a session id integer and an associated photo-related request. |
std::list<std::pair<int, base::Closure>> photo_request_queue_; |
- // Device creation factory injected on construction from MediaStreamManager or |
- // from the test harness. |
- std::unique_ptr<media::VideoCaptureSystem> video_capture_system_; |
+ const std::unique_ptr<VideoCaptureProvider> video_capture_provider_; |
base::ObserverList<media::VideoCaptureObserver> capture_observers_; |