[email protected] | da9f30a | 2014-06-18 19:39:04 | [diff] [blame] | 1 | // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Daniel Bratell | bcbca532 | 2017-09-01 10:00:53 | [diff] [blame] | 5 | #ifndef CONTENT_COMMON_MEDIA_AEC_DUMP_MESSAGES_H_ |
| 6 | #define CONTENT_COMMON_MEDIA_AEC_DUMP_MESSAGES_H_ |
| 7 | |
[email protected] | da9f30a | 2014-06-18 19:39:04 | [diff] [blame] | 8 | // IPC messages for the AEC dump. |
[email protected] | da9f30a | 2014-06-18 19:39:04 | [diff] [blame] | 9 | |
| 10 | #include "content/common/content_export.h" |
| 11 | #include "ipc/ipc_message_macros.h" |
| 12 | #include "ipc/ipc_platform_file.h" |
| 13 | |
| 14 | #undef IPC_MESSAGE_EXPORT |
| 15 | #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 16 | #define IPC_MESSAGE_START AecDumpMsgStart |
| 17 | |
| 18 | // Messages sent from the browser to the renderer. |
| 19 | |
| 20 | // The browser hands over a file handle to the consumer in the renderer |
| 21 | // identified by |id| to use for AEC dump. |
| 22 | IPC_MESSAGE_CONTROL2(AecDumpMsg_EnableAecDump, |
| 23 | int /* id */, |
| 24 | IPC::PlatformFileForTransit /* file_handle */) |
| 25 | |
| 26 | // Tell the renderer to disable AEC dump in all consumers. |
| 27 | IPC_MESSAGE_CONTROL0(AecDumpMsg_DisableAecDump) |
| 28 | |
| 29 | // Messages sent from the renderer to the browser. |
| 30 | |
| 31 | // Registers a consumer with the browser. The consumer will then get a file |
| 32 | // handle when the dump is enabled. |
| 33 | IPC_MESSAGE_CONTROL1(AecDumpMsg_RegisterAecDumpConsumer, |
| 34 | int /* id */) |
| 35 | |
| 36 | // Unregisters a consumer with the browser. |
| 37 | IPC_MESSAGE_CONTROL1(AecDumpMsg_UnregisterAecDumpConsumer, |
| 38 | int /* id */) |
hlundin | 95829c0 | 2017-04-12 09:08:27 | [diff] [blame] | 39 | |
| 40 | // TODO(hlundin): Rename file to reflect expanded use; http://crbug.com/709919. |
| 41 | IPC_MESSAGE_CONTROL2(AudioProcessingMsg_EnableAec3, |
| 42 | int /* id */, |
| 43 | bool /* enable */) |
Daniel Bratell | bcbca532 | 2017-09-01 10:00:53 | [diff] [blame] | 44 | |
| 45 | #endif // CONTENT_COMMON_MEDIA_AEC_DUMP_MESSAGES_H_ |