OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 11 matching lines...) Expand all Loading... |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef DocumentLoadTiming_h | 26 #ifndef DocumentLoadTiming_h |
27 #define DocumentLoadTiming_h | 27 #define DocumentLoadTiming_h |
28 | 28 |
29 #include "core/CoreExport.h" | 29 #include "core/CoreExport.h" |
30 #include "platform/heap/Handle.h" | 30 #include "platform/heap/Handle.h" |
31 #include "wtf/CurrentTime.h" | 31 #include "wtf/CurrentTime.h" |
32 #include "wtf/WeakPtr.h" | |
33 | 32 |
34 namespace blink { | 33 namespace blink { |
35 | 34 |
36 class DocumentLoader; | 35 class DocumentLoader; |
37 class KURL; | 36 class KURL; |
38 | 37 |
39 class CORE_EXPORT DocumentLoadTiming final { | 38 class CORE_EXPORT DocumentLoadTiming final { |
40 DISALLOW_ALLOCATION(); | 39 DISALLOW_ALLOCATION(); |
41 public: | 40 public: |
42 DocumentLoadTiming(WeakPtrWillBeRawPtr<DocumentLoader>); | 41 explicit DocumentLoadTiming(DocumentLoader&); |
43 | 42 |
44 double monotonicTimeToZeroBasedDocumentTime(double) const; | 43 double monotonicTimeToZeroBasedDocumentTime(double) const; |
45 double monotonicTimeToPseudoWallTime(double) const; | 44 double monotonicTimeToPseudoWallTime(double) const; |
46 double pseudoWallTimeToMonotonicTime(double) const; | 45 double pseudoWallTimeToMonotonicTime(double) const; |
47 | 46 |
48 void markNavigationStart(); | 47 void markNavigationStart(); |
49 void setNavigationStart(double); | 48 void setNavigationStart(double); |
50 void addRedirect(const KURL& redirectingUrl, const KURL& redirectedUrl); | 49 void addRedirect(const KURL& redirectingUrl, const KURL& redirectedUrl); |
51 | 50 |
52 void markUnloadEventStart(); | 51 void markUnloadEventStart(); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 double m_redirectStart; | 87 double m_redirectStart; |
89 double m_redirectEnd; | 88 double m_redirectEnd; |
90 short m_redirectCount; | 89 short m_redirectCount; |
91 double m_fetchStart; | 90 double m_fetchStart; |
92 double m_responseEnd; | 91 double m_responseEnd; |
93 double m_loadEventStart; | 92 double m_loadEventStart; |
94 double m_loadEventEnd; | 93 double m_loadEventEnd; |
95 bool m_hasCrossOriginRedirect; | 94 bool m_hasCrossOriginRedirect; |
96 bool m_hasSameOriginAsPreviousDocument; | 95 bool m_hasSameOriginAsPreviousDocument; |
97 | 96 |
98 WeakPtrWillBeMember<DocumentLoader> m_documentLoader; | 97 RawPtrWillBeMember<DocumentLoader> m_documentLoader; |
99 }; | 98 }; |
100 | 99 |
101 } // namespace blink | 100 } // namespace blink |
102 | 101 |
103 #endif | 102 #endif |
OLD | NEW |