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..f336ffe605fd5b2e03952ee97f9c156749d232bc 100644 |
--- a/services/video_capture/public/interfaces/video_capture_device_factory.mojom |
+++ b/services/video_capture/public/interfaces/video_capture_device_factory.mojom |
@@ -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); |
+ // Provides exclusive access to the device identified by |device_descriptor|. |
CreateDevice(VideoCaptureDeviceDescriptor device_descriptor, |
- VideoCaptureDevice& device_request); |
+ VideoCaptureDevice& device_request) |
+ => (DeviceAccessResultCode result_code); |
}; |