Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / public / platform / WebFrameTimingEvent.h
blob341ab03c82c9f5e9a998288e3c00158c21e8e4a3
1 // Copyright 2015 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 WebFrameTimingEvent_h
6 #define WebFrameTimingEvent_h
8 namespace blink {
10 // A struct to pass PerformanceRenderEvent or PerformanceCompositeEvent info
11 // to Blink.
12 struct WebFrameTimingEvent {
13 WebFrameTimingEvent(unsigned sourceFrame, double startTime, double finishTime)
14 : sourceFrame(sourceFrame)
15 , startTime(startTime)
16 , finishTime(finishTime)
20 WebFrameTimingEvent(unsigned sourceFrame, double startTime)
21 : sourceFrame(sourceFrame)
22 , startTime(startTime)
26 WebFrameTimingEvent() { }
28 WebFrameTimingEvent& operator=(const WebFrameTimingEvent& rhs)
30 sourceFrame = rhs.sourceFrame;
31 startTime = rhs.startTime;
32 finishTime = rhs.finishTime;
33 return *this;
35 unsigned sourceFrame;
36 double startTime;
37 double finishTime;
40 } // namespace blink
42 #endif