blob: 427c82bb781cf08421fe1538474ef6bf40d718cf [file] [log] [blame]
[email protected]da9f30a2014-06-18 19:39:041// 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 Bratellbcbca5322017-09-01 10:00:535#ifndef CONTENT_COMMON_MEDIA_AEC_DUMP_MESSAGES_H_
6#define CONTENT_COMMON_MEDIA_AEC_DUMP_MESSAGES_H_
7
[email protected]da9f30a2014-06-18 19:39:048// IPC messages for the AEC dump.
[email protected]da9f30a2014-06-18 19:39:049
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.
22IPC_MESSAGE_CONTROL2(AecDumpMsg_EnableAecDump,
23 int /* id */,
24 IPC::PlatformFileForTransit /* file_handle */)
25
26// Tell the renderer to disable AEC dump in all consumers.
27IPC_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.
33IPC_MESSAGE_CONTROL1(AecDumpMsg_RegisterAecDumpConsumer,
34 int /* id */)
35
36// Unregisters a consumer with the browser.
37IPC_MESSAGE_CONTROL1(AecDumpMsg_UnregisterAecDumpConsumer,
38 int /* id */)
hlundin95829c02017-04-12 09:08:2739
40// TODO(hlundin): Rename file to reflect expanded use; http://crbug.com/709919.
41IPC_MESSAGE_CONTROL2(AudioProcessingMsg_EnableAec3,
42 int /* id */,
43 bool /* enable */)
Daniel Bratellbcbca5322017-09-01 10:00:5344
45#endif // CONTENT_COMMON_MEDIA_AEC_DUMP_MESSAGES_H_