blob: b4a89a78712b97a658c253cd76a09de922090e42 [file] [log] [blame]
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_COMMON_MEDIA_WEBRTC_LOGGING_MESSAGES_H_
#define CHROME_COMMON_MEDIA_WEBRTC_LOGGING_MESSAGES_H_
// IPC messages for WebRTC logging.
#include "chrome/common/media/webrtc_logging_message_data.h"
#include "ipc/ipc_message_macros.h"
#define IPC_MESSAGE_START WebRtcLoggingMsgStart
IPC_STRUCT_TRAITS_BEGIN(WebRtcLoggingMessageData)
IPC_STRUCT_TRAITS_MEMBER(timestamp)
IPC_STRUCT_TRAITS_MEMBER(message)
IPC_STRUCT_TRAITS_END()
// Messages sent from the renderer to the browser.
// Send log message to add to log.
IPC_MESSAGE_CONTROL1(WebRtcLoggingMsg_AddLogMessages,
std::vector<WebRtcLoggingMessageData> /* messages */)
// Notification that the renderer has stopped sending log messages to the
// browser.
IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_LoggingStopped)
// Messages sent from the browser to the renderer.
// Tells the renderer to start sending log messages to the browser.
IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_StartLogging)
// Tells the renderer to stop sending log messages to the browser.
IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_StopLogging)
#endif // CHROME_COMMON_MEDIA_WEBRTC_LOGGING_MESSAGES_H_