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 d3cf6255b7e4d747592deb502ce45f87e164c6e1..afd88ad1218756af1fe6d298878f4a1a13adbd23 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_access.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; |
@@ -48,6 +54,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|. |
+ GetDeviceAccess(VideoCaptureDeviceDescriptor device_descriptor, |
mcasas
2016/08/12 23:38:37
Yeah, see my comment in the previous .mojom, it
m
chfremer
2016/08/15 20:10:34
Done.
|
+ VideoCaptureDeviceAccess& access_request) |
+ => (DeviceAccessResultCode result_code); |
}; |