OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // IPC messages for WebRTC logging. | 5 // IPC messages for WebRTC logging. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include <string> | |
9 | |
10 #include "base/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
| 9 #include "chrome/common/media/webrtc_logging_message_data.h" |
11 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
12 | 11 |
13 #define IPC_MESSAGE_START WebRtcLoggingMsgStart | 12 #define IPC_MESSAGE_START WebRtcLoggingMsgStart |
14 | 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 |
15 // Messages sent from the renderer to the browser. | 19 // Messages sent from the renderer to the browser. |
16 | 20 |
17 // Send log message to add to log. | 21 // Send log message to add to log. |
18 IPC_MESSAGE_CONTROL1(WebRtcLoggingMsg_AddLogMessage, | 22 IPC_MESSAGE_CONTROL1(WebRtcLoggingMsg_AddLogMessages, |
19 std::string /* message */) | 23 std::vector<WebRtcLoggingMessageData> /* messages */) |
20 | 24 |
21 // Notification that the renderer has stopped sending log messages to the | 25 // Notification that the renderer has stopped sending log messages to the |
22 // browser. | 26 // browser. |
23 IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_LoggingStopped) | 27 IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_LoggingStopped) |
24 | 28 |
25 // Messages sent from the browser to the renderer. | 29 // Messages sent from the browser to the renderer. |
26 | 30 |
27 // Tells the renderer to start sending log messages to the browser. | 31 // Tells the renderer to start sending log messages to the browser. |
28 IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_StartLogging) | 32 IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_StartLogging) |
29 | 33 |
30 // Tells the renderer to stop sending log messages to the browser. | 34 // Tells the renderer to stop sending log messages to the browser. |
31 IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_StopLogging) | 35 IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_StopLogging) |
OLD | NEW |