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> |
11 | 11 |
12 #include "base/memory/shared_memory.h" | 12 #include "base/memory/shared_memory.h" |
13 #include "base/sync_socket.h" | 13 #include "base/sync_socket.h" |
14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
15 #include "ipc/ipc_message_macros.h" | 15 #include "ipc/ipc_message_macros.h" |
16 #include "media/audio/audio_input_ipc.h" | 16 #include "media/audio/audio_input_ipc.h" |
17 #include "media/audio/audio_output_ipc.h" | 17 #include "media/audio/audio_output_ipc.h" |
18 #include "media/base/ipc/media_param_traits.h" | 18 #include "media/base/ipc/media_param_traits.h" |
19 #include "media/gpu/ipc/common/media_param_traits.h" | 19 #include "media/gpu/ipc/common/media_param_traits.h" |
20 #include "url/origin.h" | 20 #include "url/origin.h" |
21 | 21 |
22 #undef IPC_MESSAGE_EXPORT | 22 #undef IPC_MESSAGE_EXPORT |
23 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 23 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
24 #define IPC_MESSAGE_START AudioMsgStart | 24 #define IPC_MESSAGE_START AudioMsgStart |
25 | 25 |
26 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioInputIPCDelegateState, | 26 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioInputIPCDelegateState, |
27 media::AUDIO_INPUT_IPC_DELEGATE_STATE_LAST) | 27 media::AUDIO_INPUT_IPC_DELEGATE_STATE_LAST) |
28 | 28 |
29 IPC_ENUM_TRAITS_MAX_VALUE(media::OutputDeviceStatus, | 29 IPC_ENUM_TRAITS_MAX_VALUE(media::OutputDeviceStatus, |
30 media::OUTPUT_DEVICE_STATUS_LAST) | 30 media::OUTPUT_DEVICE_STATUS_MAX) |
31 | 31 |
32 IPC_STRUCT_BEGIN(AudioInputHostMsg_CreateStream_Config) | 32 IPC_STRUCT_BEGIN(AudioInputHostMsg_CreateStream_Config) |
33 IPC_STRUCT_MEMBER(media::AudioParameters, params) | 33 IPC_STRUCT_MEMBER(media::AudioParameters, params) |
34 IPC_STRUCT_MEMBER(bool, automatic_gain_control) | 34 IPC_STRUCT_MEMBER(bool, automatic_gain_control) |
35 IPC_STRUCT_MEMBER(uint32_t, shared_memory_count) | 35 IPC_STRUCT_MEMBER(uint32_t, shared_memory_count) |
36 IPC_STRUCT_END() | 36 IPC_STRUCT_END() |
37 | 37 |
38 // Messages sent from the browser to the renderer. | 38 // Messages sent from the browser to the renderer. |
39 | 39 |
40 // Tell the renderer process that an audio output device has been authorized | 40 // Tell the renderer process that an audio output device has been authorized |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // Set audio volume of the stream specified by stream_id. | 132 // 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. | 133 // TODO(hclam): change this to vector if we have channel numbers other than 2. |
134 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume, | 134 IPC_MESSAGE_CONTROL2(AudioHostMsg_SetVolume, |
135 int /* stream_id */, | 135 int /* stream_id */, |
136 double /* volume */) | 136 double /* volume */) |
137 | 137 |
138 // Set audio volume of the input stream specified by stream_id. | 138 // Set audio volume of the input stream specified by stream_id. |
139 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, | 139 IPC_MESSAGE_CONTROL2(AudioInputHostMsg_SetVolume, |
140 int /* stream_id */, | 140 int /* stream_id */, |
141 double /* volume */) | 141 double /* volume */) |
OLD | NEW |