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