Chromium Code Reviews| 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 18 matching lines...) Expand all Loading... | |
| 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" | 32 #include "wtf/WeakPtr.h" |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 class DocumentLoader; | 36 class DocumentLoader; |
| 37 class KURL; | 37 class KURL; |
| 38 | 38 |
| 39 class CORE_EXPORT DocumentLoadTiming { | 39 class CORE_EXPORT DocumentLoadTiming final { |
| 40 DISALLOW_ALLOCATION(); | |
| 40 public: | 41 public: |
| 41 DocumentLoadTiming(WeakPtrWillBeRawPtr<DocumentLoader>); | 42 DocumentLoadTiming(WeakPtrWillBeRawPtr<DocumentLoader>); |
| 42 | 43 |
| 43 double monotonicTimeToZeroBasedDocumentTime(double) const; | 44 double monotonicTimeToZeroBasedDocumentTime(double) const; |
| 44 double monotonicTimeToPseudoWallTime(double) const; | 45 double monotonicTimeToPseudoWallTime(double) const; |
| 45 double pseudoWallTimeToMonotonicTime(double) const; | 46 double pseudoWallTimeToMonotonicTime(double) const; |
| 46 | 47 |
| 47 void markNavigationStart(); | 48 void markNavigationStart(); |
| 48 void setNavigationStart(double); | 49 void setNavigationStart(double); |
| 49 void addRedirect(const KURL& redirectingUrl, const KURL& redirectedUrl); | 50 void addRedirect(const KURL& redirectingUrl, const KURL& redirectedUrl); |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 65 short redirectCount() const { return m_redirectCount; } | 66 short redirectCount() const { return m_redirectCount; } |
| 66 double fetchStart() const { return m_fetchStart; } | 67 double fetchStart() const { return m_fetchStart; } |
| 67 double responseEnd() const { return m_responseEnd; } | 68 double responseEnd() const { return m_responseEnd; } |
| 68 double loadEventStart() const { return m_loadEventStart; } | 69 double loadEventStart() const { return m_loadEventStart; } |
| 69 double loadEventEnd() const { return m_loadEventEnd; } | 70 double loadEventEnd() const { return m_loadEventEnd; } |
| 70 bool hasCrossOriginRedirect() const { return m_hasCrossOriginRedirect; } | 71 bool hasCrossOriginRedirect() const { return m_hasCrossOriginRedirect; } |
| 71 bool hasSameOriginAsPreviousDocument() const { return m_hasSameOriginAsPrevi ousDocument; } | 72 bool hasSameOriginAsPreviousDocument() const { return m_hasSameOriginAsPrevi ousDocument; } |
| 72 | 73 |
| 73 double referenceMonotonicTime() const { return m_referenceMonotonicTime; } | 74 double referenceMonotonicTime() const { return m_referenceMonotonicTime; } |
| 74 | 75 |
| 76 DECLARE_TRACE(); | |
| 77 | |
| 75 private: | 78 private: |
| 76 void setRedirectStart(double); | 79 void setRedirectStart(double); |
| 77 void markRedirectEnd(); | 80 void markRedirectEnd(); |
| 78 void notifyDocumentTimingChanged(); | 81 void notifyDocumentTimingChanged(); |
| 79 | 82 |
| 80 double m_referenceMonotonicTime; | 83 double m_referenceMonotonicTime; |
| 81 double m_referenceWallTime; | 84 double m_referenceWallTime; |
| 82 double m_navigationStart; | 85 double m_navigationStart; |
| 83 double m_unloadEventStart; | 86 double m_unloadEventStart; |
| 84 double m_unloadEventEnd; | 87 double m_unloadEventEnd; |
| 85 double m_redirectStart; | 88 double m_redirectStart; |
| 86 double m_redirectEnd; | 89 double m_redirectEnd; |
| 87 short m_redirectCount; | 90 short m_redirectCount; |
| 88 double m_fetchStart; | 91 double m_fetchStart; |
| 89 double m_responseEnd; | 92 double m_responseEnd; |
| 90 double m_loadEventStart; | 93 double m_loadEventStart; |
| 91 double m_loadEventEnd; | 94 double m_loadEventEnd; |
| 92 bool m_hasCrossOriginRedirect; | 95 bool m_hasCrossOriginRedirect; |
| 93 bool m_hasSameOriginAsPreviousDocument; | 96 bool m_hasSameOriginAsPreviousDocument; |
| 94 | 97 |
| 95 WeakPtrWillBeRawPtr<DocumentLoader> m_documentLoader; | 98 WeakPtrWillBeMember<DocumentLoader> m_documentLoader; |
|
haraken
2015/08/19 00:00:20
Ditto.
| |
| 96 }; | 99 }; |
| 97 | 100 |
| 98 } // namespace blink | 101 } // namespace blink |
| 99 | 102 |
| 100 #endif | 103 #endif |
| OLD | NEW |