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

Unified Diff: webrtc/logging/rtc_event_log/events/rtc_event.h

Issue 3012923002: Add the internals of RtcEvent's subclasses (Closed)
Patch Set: Rebased Created 3 years, 3 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
« no previous file with comments | « webrtc/logging/BUILD.gn ('k') | webrtc/logging/rtc_event_log/events/rtc_event_audio_network_adaptation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/logging/rtc_event_log/events/rtc_event.h
diff --git a/webrtc/logging/rtc_event_log/events/rtc_event.h b/webrtc/logging/rtc_event_log/events/rtc_event.h
index 86d978c3b6182f3a2792bdd492900ffab0cc9e39..94322fd55ac3f4da2f4959f6c33b443750768da7 100644
--- a/webrtc/logging/rtc_event_log/events/rtc_event.h
+++ b/webrtc/logging/rtc_event_log/events/rtc_event.h
@@ -11,6 +11,12 @@
#ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_H_
#define WEBRTC_LOGGING_RTC_EVENT_LOG_EVENTS_RTC_EVENT_H_
+#include <webrtc/typedefs.h>
+
+namespace rtc {
+int64_t TimeMicros();
+} // namespace rtc
+
namespace webrtc {
// This class allows us to store unencoded RTC events. Subclasses of this class
@@ -45,11 +51,14 @@ class RtcEvent {
VideoSendStreamConfig
};
+ RtcEvent() : timestamp_us_(rtc::TimeMicros()) {}
virtual ~RtcEvent() = default;
virtual Type GetType() const = 0;
virtual bool IsConfigEvent() const = 0;
+
+ const int64_t timestamp_us_;
};
} // namespace webrtc
« no previous file with comments | « webrtc/logging/BUILD.gn ('k') | webrtc/logging/rtc_event_log/events/rtc_event_audio_network_adaptation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698