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

Unified Diff: services/video_capture/video_capture_service.h

Issue 2471613005: [Mojo Video Capture] Use actual factory instances implementing media::VideoCaptureDeviceFactory (Closed)
Patch Set: Created 4 years, 1 month 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: services/video_capture/video_capture_service.h
diff --git a/services/video_capture/video_capture_service.h b/services/video_capture/video_capture_service.h
index 6dbec6f60fbee89c10c5cebf00b27e84d774cc98..2c3fb74fc87bc9b427932cdc37b6b1ce7b39f06e 100644
--- a/services/video_capture/video_capture_service.h
+++ b/services/video_capture/video_capture_service.h
@@ -13,7 +13,8 @@
namespace video_capture {
-class VideoCaptureDeviceFactoryImpl;
+class DeviceFactoryMediaToMojoAdapter;
+class MockDeviceFactory;
// Implementation of mojom::VideoCaptureService as a Service Manager service.
class VideoCaptureService
@@ -53,9 +54,10 @@ class VideoCaptureService
mojo::BindingSet<mojom::VideoCaptureDeviceFactory> factory_bindings_;
mojo::BindingSet<mojom::VideoCaptureDeviceFactory> fake_factory_bindings_;
mojo::BindingSet<mojom::VideoCaptureDeviceFactory> mock_factory_bindings_;
- std::unique_ptr<VideoCaptureDeviceFactoryImpl> device_factory_;
- std::unique_ptr<VideoCaptureDeviceFactoryImpl> fake_device_factory_;
- std::unique_ptr<VideoCaptureDeviceFactoryImpl> mock_device_factory_;
+ std::unique_ptr<DeviceFactoryMediaToMojoAdapter> device_factory_;
+ std::unique_ptr<DeviceFactoryMediaToMojoAdapter> fake_device_factory_;
+ std::unique_ptr<DeviceFactoryMediaToMojoAdapter> mock_device_factory_adapter_;
+ MockDeviceFactory* mock_device_factory_;
};
} // namespace video_capture

Powered by Google App Engine
This is Rietveld 408576698