| Index: content/common/media/media_stream_messages.h
|
| ===================================================================
|
| --- content/common/media/media_stream_messages.h (revision 109718)
|
| +++ content/common/media/media_stream_messages.h (working copy)
|
| @@ -51,6 +51,27 @@
|
| std::string /* label */,
|
| int /* index */)
|
|
|
| +// The browser has enumerated video devices successfully.
|
| +IPC_MESSAGE_ROUTED2(MediaStreamMsg_VideoDevicesEnumerated,
|
| + int /* request id */,
|
| + media_stream::StreamDeviceInfoArray /* device_list */)
|
| +
|
| +// The browser has failed to enumerate video devices.
|
| +IPC_MESSAGE_ROUTED1(MediaStreamMsg_VideoDevicesEnumerationFailed,
|
| + int /* request id */)
|
| +
|
| +// TODO(wjia): should VideoDeviceOpen* messages be merged with
|
| +// StreamGenerat* ones?
|
| +// The browser has opened a video device successfully.
|
| +IPC_MESSAGE_ROUTED3(MediaStreamMsg_VideoDeviceOpened,
|
| + int /* request id */,
|
| + std::string /* label */,
|
| + media_stream::StreamDeviceInfo /* video_device */)
|
| +
|
| +// The browser has failed to open a video device.
|
| +IPC_MESSAGE_ROUTED1(MediaStreamMsg_VideoDeviceOpenFailed,
|
| + int /* request id */)
|
| +
|
| // Messages sent from the renderer to the browser.
|
|
|
| // Request a new media stream.
|
| @@ -64,3 +85,16 @@
|
| IPC_MESSAGE_CONTROL2(MediaStreamHostMsg_StopGeneratedStream,
|
| int /* render view id */,
|
| std::string /* label */)
|
| +
|
| +// Request to enumerate devices.
|
| +IPC_MESSAGE_CONTROL3(MediaStreamHostMsg_EnumerateVideoDevices,
|
| + int /* render view id */,
|
| + int /* request id */,
|
| + std::string /* security origin */)
|
| +
|
| +// Request to open the device.
|
| +IPC_MESSAGE_CONTROL4(MediaStreamHostMsg_OpenVideoDevice,
|
| + int /* render view id */,
|
| + int /* request id */,
|
| + std::string /* device_id */,
|
| + std::string /* security origin */)
|
|
|