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

Unified Diff: services/video_capture/public/interfaces/video_capture_device_factory.mojom

Issue 2244763002: Video Capture Mojo (1.4a.a): Add service configurator interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@MakeService
Patch Set: mcasas' comments Created 4 years, 4 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: services/video_capture/public/interfaces/video_capture_device_factory.mojom
diff --git a/services/video_capture/public/interfaces/video_capture_device_factory.mojom b/services/video_capture/public/interfaces/video_capture_device_factory.mojom
index e637142556d5f1f3c0cc0b6ee07ef6342d34161a..4b7aa4ddd7d19300818c0803e0f1ce57ba5a292f 100644
--- a/services/video_capture/public/interfaces/video_capture_device_factory.mojom
+++ b/services/video_capture/public/interfaces/video_capture_device_factory.mojom
@@ -4,7 +4,7 @@
module video_capture.mojom;
-import "services/video_capture/public/interfaces/video_capture_device.mojom";
+import "services/video_capture/public/interfaces/video_capture_device_proxy.mojom";
import "services/video_capture/public/interfaces/video_capture_format.mojom";
enum VideoCaptureApi {
@@ -27,6 +27,12 @@ enum VideoCaptureTransportType {
OTHER_TRANSPORT
};
+enum DeviceAccessResultCode {
+ NOT_INITIALIZED,
+ SUCCESS,
+ ERROR_DEVICE_NOT_FOUND
+};
+
struct VideoCaptureDeviceDescriptor {
string display_name;
string device_id;
@@ -51,6 +57,8 @@ interface VideoCaptureDeviceFactory {
GetSupportedFormats(VideoCaptureDeviceDescriptor device_descriptor)
=> (array<VideoCaptureFormat> supported_formats);
- CreateDevice(VideoCaptureDeviceDescriptor device_descriptor,
- VideoCaptureDevice& device_request);
+ // Provides exclusive access to the device identified by |device_descriptor|.
+ CreateDeviceProxy(VideoCaptureDeviceDescriptor device_descriptor,
+ VideoCaptureDeviceProxy& proxy_request)
+ => (DeviceAccessResultCode result_code);
};

Powered by Google App Engine
This is Rietveld 408576698