| 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/dom/DOMHighResTimeStamp.h" |
| 9 #include "core/timing/PerformanceResourceTiming.h" | 10 #include "core/timing/PerformanceResourceTiming.h" |
| 10 | 11 |
| 11 namespace blink { | 12 namespace blink { |
| 12 | 13 |
| 13 class CORE_EXPORT PerformanceNavigationTiming final | 14 class CORE_EXPORT PerformanceNavigationTiming final |
| 14 : public PerformanceResourceTiming { | 15 : public PerformanceResourceTiming { |
| 15 DEFINE_WRAPPERTYPEINFO(); | 16 DEFINE_WRAPPERTYPEINFO(); |
| 16 | 17 |
| 17 public: | 18 public: |
| 18 enum class NavigationType { Navigate, Reload, BackForward, Prerender }; | 19 enum class NavigationType { Navigate, Reload, BackForward, Prerender }; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 35 bool allowRedirectDetails, | 36 bool allowRedirectDetails, |
| 36 bool hasSameOriginAsPreviousDocument, | 37 bool hasSameOriginAsPreviousDocument, |
| 37 ResourceLoadTiming*, | 38 ResourceLoadTiming*, |
| 38 double lastRedirectEndTime, | 39 double lastRedirectEndTime, |
| 39 double finishTime, | 40 double finishTime, |
| 40 unsigned long long transferSize, | 41 unsigned long long transferSize, |
| 41 unsigned long long encodedBodyLength, | 42 unsigned long long encodedBodyLength, |
| 42 unsigned long long decodedBodyLength, | 43 unsigned long long decodedBodyLength, |
| 43 bool didReuseConnection); | 44 bool didReuseConnection); |
| 44 | 45 |
| 45 double unloadEventStart() const; | 46 DOMHighResTimeStamp unloadEventStart() const; |
| 46 double unloadEventEnd() const; | 47 DOMHighResTimeStamp unloadEventEnd() const; |
| 47 double domInteractive() const; | 48 DOMHighResTimeStamp domInteractive() const; |
| 48 double domContentLoadedEventStart() const; | 49 DOMHighResTimeStamp domContentLoadedEventStart() const; |
| 49 double domContentLoadedEventEnd() const; | 50 DOMHighResTimeStamp domContentLoadedEventEnd() const; |
| 50 double domComplete() const; | 51 DOMHighResTimeStamp domComplete() const; |
| 51 double loadEventStart() const; | 52 DOMHighResTimeStamp loadEventStart() const; |
| 52 double loadEventEnd() const; | 53 DOMHighResTimeStamp loadEventEnd() const; |
| 53 AtomicString type() const; | 54 AtomicString type() const; |
| 54 unsigned short redirectCount() const; | 55 unsigned short redirectCount() const; |
| 55 | 56 |
| 56 // PerformanceResourceTiming overrides: | 57 // PerformanceResourceTiming overrides: |
| 57 double fetchStart() const override; | 58 DOMHighResTimeStamp fetchStart() const override; |
| 58 double redirectStart() const override; | 59 DOMHighResTimeStamp redirectStart() const override; |
| 59 double redirectEnd() const override; | 60 DOMHighResTimeStamp redirectEnd() const override; |
| 60 double responseEnd() const override; | 61 DOMHighResTimeStamp responseEnd() const override; |
| 61 | 62 |
| 62 protected: | 63 protected: |
| 63 void buildJSONValue(V8ObjectBuilder&) const override; | 64 void buildJSONValue(V8ObjectBuilder&) const override; |
| 64 | 65 |
| 65 private: | 66 private: |
| 66 ~PerformanceNavigationTiming() override; | 67 ~PerformanceNavigationTiming() override; |
| 67 | 68 |
| 68 double m_timeOrigin; | 69 double m_timeOrigin; |
| 69 double m_unloadEventStart; | 70 double m_unloadEventStart; |
| 70 double m_unloadEventEnd; | 71 double m_unloadEventEnd; |
| 71 double m_loadEventStart; | 72 double m_loadEventStart; |
| 72 double m_loadEventEnd; | 73 double m_loadEventEnd; |
| 73 unsigned short m_redirectCount; | 74 unsigned short m_redirectCount; |
| 74 double m_domInteractive; | 75 double m_domInteractive; |
| 75 double m_domContentLoadedEventStart; | 76 double m_domContentLoadedEventStart; |
| 76 double m_domContentLoadedEventEnd; | 77 double m_domContentLoadedEventEnd; |
| 77 double m_domComplete; | 78 double m_domComplete; |
| 78 NavigationType m_type; | 79 NavigationType m_type; |
| 79 double m_redirectStart; | 80 double m_redirectStart; |
| 80 double m_redirectEnd; | 81 double m_redirectEnd; |
| 81 double m_fetchStart; | 82 double m_fetchStart; |
| 82 double m_responseEnd; | 83 double m_responseEnd; |
| 83 bool m_allowRedirectDetails; | 84 bool m_allowRedirectDetails; |
| 84 bool m_hasSameOriginAsPreviousDocument; | 85 bool m_hasSameOriginAsPreviousDocument; |
| 85 }; | 86 }; |
| 86 } // namespace blink | 87 } // namespace blink |
| 87 | 88 |
| 88 #endif // PerformanceNavigationTiming_h | 89 #endif // PerformanceNavigationTiming_h |
| OLD | NEW |