blob: cfb223083ddaae2cf9d290177ece7e4c118dd889 [file] [log] [blame]
[email protected]6ef98b5a2013-05-31 23:58:311// Copyright 2013 The Chromium Authors. All rights reserved.
[email protected]fc8638a2013-04-18 09:17:022// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// IPC messages for WebRTC logging.
6// Multiply-included message file, hence no include guard.
7
[email protected]d16b2e02014-04-03 17:53:018#include "chrome/common/media/webrtc_logging_message_data.h"
[email protected]fc8638a2013-04-18 09:17:029#include "ipc/ipc_message_macros.h"
10
11#define IPC_MESSAGE_START WebRtcLoggingMsgStart
12
[email protected]d16b2e02014-04-03 17:53:0113IPC_STRUCT_TRAITS_BEGIN(WebRtcLoggingMessageData)
14 IPC_STRUCT_TRAITS_MEMBER(timestamp)
15 IPC_STRUCT_TRAITS_MEMBER(message)
16IPC_STRUCT_TRAITS_END()
17
[email protected]fc8638a2013-04-18 09:17:0218// Messages sent from the renderer to the browser.
19
[email protected]dd0136f2014-01-15 20:03:5820// Send log message to add to log.
[email protected]d16b2e02014-04-03 17:53:0121IPC_MESSAGE_CONTROL1(WebRtcLoggingMsg_AddLogMessages,
22 std::vector<WebRtcLoggingMessageData> /* messages */)
[email protected]dd0136f2014-01-15 20:03:5823
24// Notification that the renderer has stopped sending log messages to the
25// browser.
[email protected]10e5c5e52013-10-03 18:44:0626IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_LoggingStopped)
[email protected]fc8638a2013-04-18 09:17:0227
28// Messages sent from the browser to the renderer.
29
[email protected]dd0136f2014-01-15 20:03:5830// Tells the renderer to start sending log messages to the browser.
31IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_StartLogging)
[email protected]10e5c5e52013-10-03 18:44:0632
[email protected]dd0136f2014-01-15 20:03:5833// Tells the renderer to stop sending log messages to the browser.
[email protected]10e5c5e52013-10-03 18:44:0634IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_StopLogging)