Index: public/platform/WebFrameTimingEvent.h |
diff --git a/public/platform/WebFrameTimingEvent.h b/public/platform/WebFrameTimingEvent.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..341ab03c82c9f5e9a998288e3c00158c21e8e4a3 |
--- /dev/null |
+++ b/public/platform/WebFrameTimingEvent.h |
@@ -0,0 +1,42 @@ |
+// Copyright 2015 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 WebFrameTimingEvent_h |
+#define WebFrameTimingEvent_h |
+ |
+namespace blink { |
+ |
+// A struct to pass PerformanceRenderEvent or PerformanceCompositeEvent info |
+// to Blink. |
+struct WebFrameTimingEvent { |
+ WebFrameTimingEvent(unsigned sourceFrame, double startTime, double finishTime) |
+ : sourceFrame(sourceFrame) |
+ , startTime(startTime) |
+ , finishTime(finishTime) |
+ { |
+ } |
+ |
+ WebFrameTimingEvent(unsigned sourceFrame, double startTime) |
+ : sourceFrame(sourceFrame) |
+ , startTime(startTime) |
+ { |
+ } |
+ |
+ WebFrameTimingEvent() { } |
+ |
+ WebFrameTimingEvent& operator=(const WebFrameTimingEvent& rhs) |
+ { |
+ sourceFrame = rhs.sourceFrame; |
+ startTime = rhs.startTime; |
+ finishTime = rhs.finishTime; |
+ return *this; |
+ } |
+ unsigned sourceFrame; |
+ double startTime; |
+ double finishTime; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif |