Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / common / media / webrtc_logging_message_data.h
blob867fd957d48573de6be5c462d009e31e08e23945
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.
5 #ifndef CHROME_COMMON_MEDIA_WEBRTC_LOGGING_MESSAGE_DATA_H_
6 #define CHROME_COMMON_MEDIA_WEBRTC_LOGGING_MESSAGE_DATA_H_
8 #include <string>
10 #include "base/time/time.h"
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);
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;
22 base::Time timestamp;
23 std::string message;
26 #endif // CHROME_COMMON_MEDIA_WEBRTC_LOGGING_MESSAGE_DATA_H_