Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5519)

Unified Diff: chrome/common/media/webrtc_logging_messages.h

Issue 218403004: Fix the timestamp generation for webrtc native log. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tommi's comments Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/media/webrtc_logging_messages.h
diff --git a/chrome/common/media/webrtc_logging_messages.h b/chrome/common/media/webrtc_logging_messages.h
index e28cca3e1997a3692a35190567eca6204da7ef14..30ed3975ac2d176de74ccc0c8f30f960849c2d92 100644
--- a/chrome/common/media/webrtc_logging_messages.h
+++ b/chrome/common/media/webrtc_logging_messages.h
@@ -5,18 +5,22 @@
// IPC messages for WebRTC logging.
// Multiply-included message file, hence no include guard.
-#include <string>
-
#include "base/memory/shared_memory.h"
+#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_AddLogMessage,
- std::string /* message */)
+IPC_MESSAGE_CONTROL1(WebRtcLoggingMsg_AddLogMessages,
+ std::vector<WebRtcLoggingMessageData> /* messages */)
// Notification that the renderer has stopped sending log messages to the
// browser.

Powered by Google App Engine
This is Rietveld 408576698