OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef PerformanceNavigationTiming_h | 5 #ifndef PerformanceNavigationTiming_h |
6 #define PerformanceNavigationTiming_h | 6 #define PerformanceNavigationTiming_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/loader/FrameLoaderTypes.h" | |
10 #include "core/timing/PerformanceResourceTiming.h" | 9 #include "core/timing/PerformanceResourceTiming.h" |
11 | 10 |
12 namespace blink { | 11 namespace blink { |
13 | 12 |
14 class CORE_EXPORT PerformanceNavigationTiming final | 13 class CORE_EXPORT PerformanceNavigationTiming final |
15 : public PerformanceResourceTiming { | 14 : public PerformanceResourceTiming { |
16 DEFINE_WRAPPERTYPEINFO(); | 15 DEFINE_WRAPPERTYPEINFO(); |
17 | 16 |
18 public: | 17 public: |
| 18 enum class NavigationType { Navigate, Reload, BackForward, Prerender }; |
| 19 |
19 PerformanceNavigationTiming(double timeOrigin, | 20 PerformanceNavigationTiming(double timeOrigin, |
20 double unloadEventStart, | 21 double unloadEventStart, |
21 double unloadEventEnd, | 22 double unloadEventEnd, |
22 double loadEventStart, | 23 double loadEventStart, |
23 double loadEventEnd, | 24 double loadEventEnd, |
24 unsigned short redirectCount, | 25 unsigned short redirectCount, |
25 double domInteractive, | 26 double domInteractive, |
26 double domContentLoadedEventStart, | 27 double domContentLoadedEventStart, |
27 double domContentLoadedEventEnd, | 28 double domContentLoadedEventEnd, |
28 double domComplete, | 29 double domComplete, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 double m_redirectStart; | 79 double m_redirectStart; |
79 double m_redirectEnd; | 80 double m_redirectEnd; |
80 double m_fetchStart; | 81 double m_fetchStart; |
81 double m_responseEnd; | 82 double m_responseEnd; |
82 bool m_hasCrossOriginRedirect; | 83 bool m_hasCrossOriginRedirect; |
83 bool m_hasSameOriginAsPreviousDocument; | 84 bool m_hasSameOriginAsPreviousDocument; |
84 }; | 85 }; |
85 } // namespace blink | 86 } // namespace blink |
86 | 87 |
87 #endif // PerformanceNavigationTiming_h | 88 #endif // PerformanceNavigationTiming_h |
OLD | NEW |