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

Side by Side 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: Created 6 years, 8 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 unified diff | Download patch
OLDNEW
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> 8 #include <string>
9 9
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
11 #include "ipc/ipc_message_macros.h" 11 #include "ipc/ipc_message_macros.h"
12 12
13 #define IPC_MESSAGE_START WebRtcLoggingMsgStart 13 #define IPC_MESSAGE_START WebRtcLoggingMsgStart
14 14
15 IPC_STRUCT_BEGIN(WebRtcLoggingMessage)
16 IPC_STRUCT_MEMBER(uint64, timestamp_ms)
17 IPC_STRUCT_MEMBER(std::string, message)
18 IPC_STRUCT_END()
19
15 // Messages sent from the renderer to the browser. 20 // Messages sent from the renderer to the browser.
16 21
17 // Send log message to add to log. 22 // Send log message to add to log.
18 IPC_MESSAGE_CONTROL1(WebRtcLoggingMsg_AddLogMessage, 23 IPC_MESSAGE_CONTROL1(WebRtcLoggingMsg_AddLogMessages,
19 std::string /* message */) 24 std::vector<WebRtcLoggingMessage> /* messages */)
20 25
21 // Notification that the renderer has stopped sending log messages to the 26 // Notification that the renderer has stopped sending log messages to the
22 // browser. 27 // browser.
23 IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_LoggingStopped) 28 IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_LoggingStopped)
24 29
25 // Messages sent from the browser to the renderer. 30 // Messages sent from the browser to the renderer.
26 31
27 // Tells the renderer to start sending log messages to the browser. 32 // Tells the renderer to start sending log messages to the browser.
28 IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_StartLogging) 33 IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_StartLogging)
29 34
30 // Tells the renderer to stop sending log messages to the browser. 35 // Tells the renderer to stop sending log messages to the browser.
31 IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_StopLogging) 36 IPC_MESSAGE_CONTROL0(WebRtcLoggingMsg_StopLogging)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698