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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/DocumentTiming.cpp ('k') | Source/core/loader/DocumentLoadTiming.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/DocumentLoadTiming.h
diff --git a/Source/core/loader/DocumentLoadTiming.h b/Source/core/loader/DocumentLoadTiming.h
index f5d461b4ef33e2298ab9a0300aa97108430ebb5c..6bd081ef2b1ec2feb63643fe41983047bd65e8d8 100644
--- a/Source/core/loader/DocumentLoadTiming.h
+++ b/Source/core/loader/DocumentLoadTiming.h
@@ -29,7 +29,6 @@
#include "core/CoreExport.h"
#include "platform/heap/Handle.h"
#include "wtf/CurrentTime.h"
-#include "wtf/WeakPtr.h"
namespace blink {
@@ -39,7 +38,7 @@ class KURL;
class CORE_EXPORT DocumentLoadTiming final {
DISALLOW_ALLOCATION();
public:
- DocumentLoadTiming(WeakPtrWillBeRawPtr<DocumentLoader>);
+ explicit DocumentLoadTiming(DocumentLoader&);
double monotonicTimeToZeroBasedDocumentTime(double) const;
double monotonicTimeToPseudoWallTime(double) const;
@@ -95,7 +94,7 @@ private:
bool m_hasCrossOriginRedirect;
bool m_hasSameOriginAsPreviousDocument;
- WeakPtrWillBeMember<DocumentLoader> m_documentLoader;
+ RawPtrWillBeMember<DocumentLoader> m_documentLoader;
};
} // namespace blink
« 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