Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: Source/core/loader/DocumentLoadTiming.h

Issue 1290683003: Remove WeakPtrs from DocumentTiming/DocumentLoadTiming (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: WeakPtrWillBeRawPtr<Document>(nullptr) => nullptr Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/dom/DocumentTiming.cpp ('k') | Source/core/loader/DocumentLoadTiming.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/DocumentTiming.cpp ('k') | Source/core/loader/DocumentLoadTiming.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698