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

Unified Diff: content/browser/renderer_host/media/media_stream_manager.h

Issue 2800493002: [Mojo Video Capture] Create abstraction VideoCaptureProvider (Closed)
Patch Set: Incorporated suggestions from PatchSet 2 Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/media/media_stream_manager.h
diff --git a/content/browser/renderer_host/media/media_stream_manager.h b/content/browser/renderer_host/media/media_stream_manager.h
index b3a5cecf8d2fd01c9103f59cf24732e0535165b1..e4d488eacfbd35fe6fd975bd2eef7365948633dc 100644
--- a/content/browser/renderer_host/media/media_stream_manager.h
+++ b/content/browser/renderer_host/media/media_stream_manager.h
@@ -49,7 +49,6 @@
namespace media {
class AudioSystem;
-class VideoCaptureSystem;
}
namespace url {
@@ -63,6 +62,7 @@ class FakeMediaStreamUIProxy;
class MediaStreamRequester;
class MediaStreamUIProxy;
class VideoCaptureManager;
+class VideoCaptureProvider;
// MediaStreamManager is used to generate and close new media devices, not to
// start the media flow. The classes requesting new media streams are answered
@@ -92,8 +92,7 @@ class CONTENT_EXPORT MediaStreamManager
// |video_capture_system| or |device_task_runner| are null.
explicit MediaStreamManager(
media::AudioSystem* audio_system,
- std::unique_ptr<media::VideoCaptureSystem> video_capture_system,
- scoped_refptr<base::SingleThreadTaskRunner> device_task_runner);
+ std::unique_ptr<VideoCaptureProvider> video_capture_provider);
~MediaStreamManager() override;
@@ -282,8 +281,7 @@ class CONTENT_EXPORT MediaStreamManager
using DeviceRequests = std::list<LabeledDeviceRequest>;
void InitializeMaybeAsync(
- std::unique_ptr<media::VideoCaptureSystem> video_capture_system,
- scoped_refptr<base::SingleThreadTaskRunner> device_task_runner);
+ std::unique_ptr<VideoCaptureProvider> video_capture_provider);
// |output_parameters| contains real values only if the request requires it.
void HandleAccessRequestResponse(

Powered by Google App Engine
This is Rietveld 408576698