| 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 audio. | 5 // IPC messages for the audio. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 base::SharedMemoryHandle /* handle */, | 67 base::SharedMemoryHandle /* handle */, |
| 68 base::SyncSocket::TransitDescriptor /* socket descriptor */, | 68 base::SyncSocket::TransitDescriptor /* socket descriptor */, |
| 69 uint32_t /* length */, | 69 uint32_t /* length */, |
| 70 uint32_t /* segment count */) | 70 uint32_t /* segment count */) |
| 71 | 71 |
| 72 // Notification message sent from AudioRendererHost to renderer for state | 72 // Notification message sent from AudioRendererHost to renderer for state |
| 73 // update on error. | 73 // update on error. |
| 74 IPC_MESSAGE_CONTROL1(AudioMsg_NotifyStreamError, int /* stream id */) | 74 IPC_MESSAGE_CONTROL1(AudioMsg_NotifyStreamError, int /* stream id */) |
| 75 | 75 |
| 76 // Notification message sent from browser to renderer for state update. | 76 // Notification message sent from browser to renderer for state update. |
| 77 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyStreamStateChanged, | 77 IPC_MESSAGE_CONTROL1(AudioInputMsg_NotifyStreamError, int /* stream id */) |
| 78 int /* stream id */, | |
| 79 media::AudioInputIPCDelegateState /* new state */) | |
| 80 | |
| 81 IPC_MESSAGE_CONTROL2(AudioInputMsg_NotifyStreamVolume, | |
| 82 int /* stream id */, | |
| 83 double /* volume */) | |
| 84 | 78 |
| 85 // Messages sent from the renderer to the browser. | 79 // Messages sent from the renderer to the browser. |
| 86 | 80 |
| 87 // Message sent to the browser to request the use of an audio output | 81 // Message sent to the browser to request the use of an audio output |
| 88 // device. |render_frame_id| is the routing ID for the RenderFrame producing | 82 // device. |render_frame_id| is the routing ID for the RenderFrame producing |
| 89 // the audio data. | 83 // the audio data. |
| 90 IPC_MESSAGE_CONTROL5(AudioHostMsg_RequestDeviceAuthorization, | 84 IPC_MESSAGE_CONTROL5(AudioHostMsg_RequestDeviceAuthorization, |
| 91 int /* stream_id */, | 85 int /* stream_id */, |
| 92 int /* render_frame_id */, | 86 int /* render_frame_id */, |
| 93 int /* session_id */, | 87 int /* session_id */, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 // Set audio volume of the stream specified by stream_id. | 126 // Set audio volume of the stream specified by stream_id. |
| 133 // TODO(hclam): change this to vector if we have channel numbers other than 2. | 127 // TODO(hclam): change this to vector if we have channel numbers other than 2. |
| 134 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume, | 128 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume, |
| 135 int /* stream_id */, | 129 int /* stream_id */, |
| 136 double /* volume */) | 130 double /* volume */) |
| 137 | 131 |
| 138 // Set audio volume of the input stream specified by stream_id. | 132 // Set audio volume of the input stream specified by stream_id. |
| 139 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, | 133 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, |
| 140 int /* stream_id */, | 134 int /* stream_id */, |
| 141 double /* volume */) | 135 double /* volume */) |
| OLD | NEW |