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

Unified Diff: base/trace_event/video_playback_pae.h

Issue 2159323002: Add tracing AutoOpenCloseEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code review changes Created 4 years, 4 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: base/trace_event/video_playback_pae.h
diff --git a/base/trace_event/video_playback_pae.h b/base/trace_event/video_playback_pae.h
new file mode 100644
index 0000000000000000000000000000000000000000..44927538a013d4adf39b955a10a692a75990ede5
--- /dev/null
+++ b/base/trace_event/video_playback_pae.h
@@ -0,0 +1,33 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BASE_TRACE_EVENT_VIDEO_PERSISTENT_ASYNC_H_
+#define BASE_TRACE_EVENT_VIDEO_PERSISTENT_ASYNC_H_
+
+#include "base/macros.h"
+#include "base/time/time.h"
+#include "base/trace_event/persistent_async_event.h"
+
+namespace base {
+
+namespace trace_event {
+
+// A persistent async event for video playback.
+
charliea (OOO until 10-5) 2016/09/08 18:26:34 nit: please delete extra line
alexandermont 2016/09/14 00:09:08 Done
+class BASE_EXPORT VideoPlaybackPersistentAsyncEvent
+ : public PersistentAsyncEvent {
+ public:
+ VideoPlaybackPersistentAsyncEvent();
+ ~VideoPlaybackPersistentAsyncEvent() override;
+
+ protected:
+ void RecordBeginEvent() override;
+ void RecordBeginEventWithTimestamp(base::TimeTicks timestamp) override;
+ void RecordEndEvent() override;
+};
+
+} // namespace trace_event
+} // namespace base
+
+#endif // BASE_TRACE_EVENT_VIDEO_PERSISTENT_ASYNC_H_

Powered by Google App Engine
This is Rietveld 408576698