OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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. | |
4 | |
5 #ifndef PerformanceNavigationTiming_h | |
6 #define PerformanceNavigationTiming_h | |
7 | |
8 #include "core/CoreExport.h" | |
9 #include "core/frame/DOMWindowProperty.h" | |
Yoav Weiss
2016/11/12 17:13:48
Is this h file needed here?
sunjian
2016/11/14 22:12:28
Done.
| |
10 #include "core/loader/FrameLoaderTypes.h" | |
Yoav Weiss
2016/11/12 17:13:48
Is this h file needed here?
sunjian
2016/11/14 22:12:28
This one is needed to provide NavigationType used
| |
11 #include "core/timing/PerformanceResourceTiming.h" | |
12 #include "wtf/Forward.h" | |
13 | |
14 namespace blink { | |
15 | |
16 class DocumentLoadTiming; | |
17 class DocumentLoader; | |
18 class DocumentTiming; | |
Yoav Weiss
2016/11/12 17:13:47
Are there forward declarations needed?
sunjian
2016/11/14 22:12:28
Done.
| |
19 | |
20 class CORE_EXPORT PerformanceNavigationTiming final | |
21 : public PerformanceResourceTiming { | |
22 DEFINE_WRAPPERTYPEINFO(); | |
23 | |
24 public: | |
25 PerformanceNavigationTiming(double timeOrigin, | |
26 double unloadEventStart, | |
27 double unloadEventEnd, | |
28 double loadEventStart, | |
29 double loadEventEnd, | |
30 unsigned short redirectCount, | |
31 double domInteractive, | |
32 double domContentLoadedEventStart, | |
33 double domContentLoadedEventEnd, | |
34 double domComplete, | |
35 NavigationType, | |
36 double redirectStart, | |
37 double redirectEnd, | |
38 double fetchStart, | |
39 double responseEnd, | |
40 bool hasCrossOriginRedirect, | |
41 bool hasSameOriginAsPreviousDocument, | |
42 ResourceLoadTiming*, | |
43 double lastRedirectEndTime, | |
44 double finishTime, | |
45 unsigned long long transferSize, | |
46 unsigned long long encodedBodyLength, | |
47 unsigned long long decodedBodyLength, | |
48 bool didReuseConnection); | |
49 | |
50 double unloadEventStart() const; | |
51 double unloadEventEnd() const; | |
52 double domInteractive() const; | |
53 double domContentLoadedEventStart() const; | |
54 double domContentLoadedEventEnd() const; | |
55 double domComplete() const; | |
56 double loadEventStart() const; | |
57 double loadEventEnd() const; | |
58 AtomicString type() const; | |
59 unsigned short redirectCount() const; | |
60 | |
61 // PerformanceResourceTiming overrides: | |
62 double fetchStart() const override; | |
63 double redirectStart() const override; | |
64 double redirectEnd() const override; | |
65 double responseEnd() const override; | |
66 | |
67 protected: | |
68 void buildJSONValue(V8ObjectBuilder&) const override; | |
69 | |
70 private: | |
71 ~PerformanceNavigationTiming() override; | |
72 | |
73 double m_timeOrigin; | |
74 double m_unloadEventStart; | |
75 double m_unloadEventEnd; | |
76 double m_loadEventStart; | |
77 double m_loadEventEnd; | |
78 unsigned short m_redirectCount; | |
79 double m_domInteractive; | |
80 double m_domContentLoadedEventStart; | |
81 double m_domContentLoadedEventEnd; | |
82 double m_domComplete; | |
83 NavigationType m_type; | |
84 double m_redirectStart; | |
85 double m_redirectEnd; | |
86 double m_fetchStart; | |
87 double m_responseEnd; | |
88 bool m_hasCrossOriginRedirect; | |
89 bool m_hasSameOriginAsPreviousDocument; | |
90 }; | |
91 } // namespace blink | |
92 | |
93 #endif // PerformanceNavigationTiming_h | |
OLD | NEW |