Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // IPC messages for the media streaming. | 5 // IPC messages for the media streaming. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "content/common/media/media_stream_options.h" | 10 #include "content/common/media/media_stream_options.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 44 // Report of a failure of a video device. | 44 // Report of a failure of a video device. |
| 45 IPC_MESSAGE_ROUTED2(MediaStreamHostMsg_VideoDeviceFailed, | 45 IPC_MESSAGE_ROUTED2(MediaStreamHostMsg_VideoDeviceFailed, |
| 46 std::string /* label */, | 46 std::string /* label */, |
| 47 int /* index */) | 47 int /* index */) |
| 48 | 48 |
| 49 // Report of a failure of an audio device. | 49 // Report of a failure of an audio device. |
| 50 IPC_MESSAGE_ROUTED2(MediaStreamHostMsg_AudioDeviceFailed, | 50 IPC_MESSAGE_ROUTED2(MediaStreamHostMsg_AudioDeviceFailed, |
| 51 std::string /* label */, | 51 std::string /* label */, |
| 52 int /* index */) | 52 int /* index */) |
| 53 | 53 |
| 54 // The browser has enumerated devices successfully. | |
| 55 IPC_MESSAGE_ROUTED2(MediaStreamMsg_DevicesEnumerated, | |
| 56 int /* request id */, | |
| 57 media_stream::StreamDeviceInfoArray /* device_list */) | |
| 58 | |
| 59 // The browser has failed to enumerate devices. | |
| 60 IPC_MESSAGE_ROUTED1(MediaStreamMsg_DevicesEnumerationFailed, | |
| 61 int /* request id */) | |
| 62 | |
| 63 // TODO(wjia): should DeviceOpen* messages be merged with | |
| 64 // StreamGenerat* ones? | |
| 65 // The browser has opened a device successfully. | |
| 66 IPC_MESSAGE_ROUTED3(MediaStreamMsg_DeviceOpened, | |
| 67 int /* request id */, | |
| 68 std::string /* label */, | |
| 69 media_stream::StreamDeviceInfo /* the device */) | |
| 70 | |
| 71 // The browser has failed to open a device. | |
| 72 IPC_MESSAGE_ROUTED1(MediaStreamMsg_DeviceOpenFailed, | |
| 73 int /* request id */) | |
| 74 | |
| 54 // Messages sent from the renderer to the browser. | 75 // Messages sent from the renderer to the browser. |
| 55 | 76 |
| 56 // Request a new media stream. | 77 // Request a new media stream. |
| 57 IPC_MESSAGE_CONTROL4(MediaStreamHostMsg_GenerateStream, | 78 IPC_MESSAGE_CONTROL4(MediaStreamHostMsg_GenerateStream, |
| 58 int /* render view id */, | 79 int /* render view id */, |
| 59 int /* request id */, | 80 int /* request id */, |
| 60 media_stream::StreamOptions /* options */, | 81 media_stream::StreamOptions /* options */, |
| 61 std::string /* security origin */) | 82 std::string /* security origin */) |
| 62 | 83 |
| 63 // Request to stop streaming from the media stream. | 84 // Request to stop streaming from the media stream. |
| 64 IPC_MESSAGE_CONTROL2(MediaStreamHostMsg_StopGeneratedStream, | 85 IPC_MESSAGE_CONTROL2(MediaStreamHostMsg_StopGeneratedStream, |
| 65 int /* render view id */, | 86 int /* render view id */, |
| 66 std::string /* label */) | 87 std::string /* label */) |
| 88 | |
| 89 // Request to enumerate devices. | |
| 90 IPC_MESSAGE_CONTROL4(MediaStreamHostMsg_EnumerateDevices, | |
| 91 int /* render view id */, | |
| 92 int /* request id */, | |
| 93 media_stream::MediaStreamType /* type */, | |
| 94 std::string /* security origin */) | |
|
scherkus (not reviewing)
2012/01/25 03:19:42
OOC how are security origins used in the browser p
wjia(left Chromium)
2012/01/25 22:50:44
Right now, security origin is not used since the u
| |
| 95 | |
| 96 // Request to open the device. | |
| 97 IPC_MESSAGE_CONTROL5(MediaStreamHostMsg_OpenDevice, | |
| 98 int /* render view id */, | |
| 99 int /* request id */, | |
| 100 std::string /* device_id */, | |
| 101 media_stream::MediaStreamType /* type */, | |
| 102 std::string /* security origin */) | |
| OLD | NEW |