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

Side by Side Diff: chrome/common/media/webrtc_logging_message_data.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
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/media/webrtc_logging_message_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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 #ifndef CHROME_COMMON_MEDIA_WEBRTC_LOGGING_MESSAGE_DATA_H_
6 #define CHROME_COMMON_MEDIA_WEBRTC_LOGGING_MESSAGE_DATA_H_
7
8 #include <string>
9
10 #include "base/time/time.h"
11
12 // A struct representing a logging message with its creation time.
13 struct WebRtcLoggingMessageData {
14 WebRtcLoggingMessageData();
15 WebRtcLoggingMessageData(base::Time time, const std::string& message);
16
17 // Returns a string formatted as "[XXX:YYY] $message", where "[XXX:YYY]" is
18 // the timestamp relative to |start_time| converted to seconds (XXX) plus
19 // milliseconds (YYY).
20 std::string Format(base::Time start_time) const;
21
22 base::Time timestamp;
23 std::string message;
24 };
25
26 #endif // CHROME_COMMON_MEDIA_WEBRTC_LOGGING_MESSAGE_DATA_H_
OLDNEW
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/media/webrtc_logging_message_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698