| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 // The browser has failed to open a device. | 95 // The browser has failed to open a device. |
| 96 IPC_MESSAGE_ROUTED1(MediaStreamMsg_DeviceOpenFailed, | 96 IPC_MESSAGE_ROUTED1(MediaStreamMsg_DeviceOpenFailed, |
| 97 int /* request id */) | 97 int /* request id */) |
| 98 | 98 |
| 99 // Response to enumerate devices request. | 99 // Response to enumerate devices request. |
| 100 IPC_MESSAGE_CONTROL2(MediaStreamMsg_GetSourcesACK, | 100 IPC_MESSAGE_CONTROL2(MediaStreamMsg_GetSourcesACK, |
| 101 int /* request id */, | 101 int /* request id */, |
| 102 content::StreamDeviceInfoArray /* device_list */) | 102 content::StreamDeviceInfoArray /* device_list */) |
| 103 | 103 |
| 104 // The browser hands over a file handle to the renderer to use for AEC dump. | |
| 105 // TODO(grunell): This should not belong to media stream. Change when | |
| 106 // refactoring MediaStreamDependencyFactory. | |
| 107 IPC_MESSAGE_CONTROL1(MediaStreamMsg_EnableAecDump, | |
| 108 IPC::PlatformFileForTransit /* file_handle */) | |
| 109 | |
| 110 // Tell the renderer to disable AEC dump. | |
| 111 IPC_MESSAGE_CONTROL0(MediaStreamMsg_DisableAecDump) | |
| 112 | |
| 113 // Messages sent from the renderer to the browser. | 104 // Messages sent from the renderer to the browser. |
| 114 | 105 |
| 115 // Request a new media stream. | 106 // Request a new media stream. |
| 116 IPC_MESSAGE_CONTROL5(MediaStreamHostMsg_GenerateStream, | 107 IPC_MESSAGE_CONTROL5(MediaStreamHostMsg_GenerateStream, |
| 117 int /* render view id */, | 108 int /* render view id */, |
| 118 int /* request id */, | 109 int /* request id */, |
| 119 content::StreamOptions /* components */, | 110 content::StreamOptions /* components */, |
| 120 GURL /* security origin */, | 111 GURL /* security origin */, |
| 121 bool /* user_gesture */) | 112 bool /* user_gesture */) |
| 122 | 113 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 int /* render view id */, | 146 int /* render view id */, |
| 156 int /* request id */, | 147 int /* request id */, |
| 157 std::string /* device_id */, | 148 std::string /* device_id */, |
| 158 content::MediaStreamType /* type */, | 149 content::MediaStreamType /* type */, |
| 159 GURL /* security origin */) | 150 GURL /* security origin */) |
| 160 | 151 |
| 161 // Request to close a device. | 152 // Request to close a device. |
| 162 IPC_MESSAGE_CONTROL2(MediaStreamHostMsg_CloseDevice, | 153 IPC_MESSAGE_CONTROL2(MediaStreamHostMsg_CloseDevice, |
| 163 int /* render view id */, | 154 int /* render view id */, |
| 164 std::string /*label*/) | 155 std::string /*label*/) |
| OLD | NEW |