[email protected] | 6ef98b5a | 2013-05-31 23:58:31 | [diff] [blame] | 1 | // Copyright 2013 The Chromium Authors. All rights reserved. |
[email protected] | fc8638a | 2013-04-18 09:17:02 | [diff] [blame] | 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 | |||||
[email protected] | d16b2e0 | 2014-04-03 17:53:01 | [diff] [blame] | 8 | #include "chrome/common/media/webrtc_logging_message_data.h" |
[email protected] | fc8638a | 2013-04-18 09:17:02 | [diff] [blame] | 9 | #include "ipc/ipc_message_macros.h" |
10 | |||||
11 | #define IPC_MESSAGE_START WebRtcLoggingMsgStart | ||||
12 | |||||
[email protected] | d16b2e0 | 2014-04-03 17:53:01 | [diff] [blame] | 13 | IPC_STRUCT_TRAITS_BEGIN(WebRtcLoggingMessageData) |
14 | IPC_STRUCT_TRAITS_MEMBER(timestamp) | ||||
15 | IPC_STRUCT_TRAITS_MEMBER(message) | ||||
16 | IPC_STRUCT_TRAITS_END() | ||||
17 | |||||
[email protected] | fc8638a | 2013-04-18 09:17:02 | [diff] [blame] | 18 | // Messages sent from the renderer to the browser. |
19 | |||||
[email protected] | dd0136f | 2014-01-15 20:03:58 | [diff] [blame] | 20 | // Send log message to add to log. |
[email protected] | d16b2e0 | 2014-04-03 17:53:01 | [diff] [blame] | 21 | IPC_MESSAGE_CONTROL1(WebRtcLoggingMsg_AddLogMessages, |
22 | std::vector<WebRtcLoggingMessageData> /* messages */) | ||||
[email protected] | dd0136f | 2014-01-15 20:03:58 | [diff] [blame] | 23 | |
24 | // Notification that the renderer has stopped sending log messages to the | ||||
25 | // browser. | ||||
[email protected] | 10e5c5e5 | 2013-10-03 18:44:06 | [diff] [blame] | 26 | IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_LoggingStopped) |
[email protected] | fc8638a | 2013-04-18 09:17:02 | [diff] [blame] | 27 | |
28 | // Messages sent from the browser to the renderer. | ||||
29 | |||||
[email protected] | dd0136f | 2014-01-15 20:03:58 | [diff] [blame] | 30 | // Tells the renderer to start sending log messages to the browser. |
31 | IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_StartLogging) | ||||
[email protected] | 10e5c5e5 | 2013-10-03 18:44:06 | [diff] [blame] | 32 | |
[email protected] | dd0136f | 2014-01-15 20:03:58 | [diff] [blame] | 33 | // Tells the renderer to stop sending log messages to the browser. |
[email protected] | 10e5c5e5 | 2013-10-03 18:44:06 | [diff] [blame] | 34 | IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_StopLogging) |