1 // Copyright 2013 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.
5 // IPC messages for WebRTC logging.
6 // Multiply-included message file, hence no include guard.
8 #include "base/memory/shared_memory.h"
9 #include "chrome/common/media/webrtc_logging_message_data.h"
10 #include "ipc/ipc_message_macros.h"
12 #define IPC_MESSAGE_START WebRtcLoggingMsgStart
14 IPC_STRUCT_TRAITS_BEGIN(WebRtcLoggingMessageData
)
15 IPC_STRUCT_TRAITS_MEMBER(timestamp
)
16 IPC_STRUCT_TRAITS_MEMBER(message
)
17 IPC_STRUCT_TRAITS_END()
19 // Messages sent from the renderer to the browser.
21 // Send log message to add to log.
22 IPC_MESSAGE_CONTROL1(WebRtcLoggingMsg_AddLogMessages
,
23 std::vector
<WebRtcLoggingMessageData
> /* messages */)
25 // Notification that the renderer has stopped sending log messages to the
27 IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_LoggingStopped
)
29 // Messages sent from the browser to the renderer.
31 // Tells the renderer to start sending log messages to the browser.
32 IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_StartLogging
)
34 // Tells the renderer to stop sending log messages to the browser.
35 IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_StopLogging
)