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

Unified Diff: Source/core/loader/DocumentLoadTiming.h

Issue 1288973002: Observing DocumentTiming and sending data to RenderFrameImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Document logic moved to DocumentTiming 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
Index: Source/core/loader/DocumentLoadTiming.h
diff --git a/Source/core/loader/DocumentLoadTiming.h b/Source/core/loader/DocumentLoadTiming.h
index 04931bd939648b97100ca1d8aeaf7b9cc55694ba..a63f9df39f510f45acac5b2267bbcb69db6b95f4 100644
--- a/Source/core/loader/DocumentLoadTiming.h
+++ b/Source/core/loader/DocumentLoadTiming.h
@@ -27,15 +27,18 @@
#define DocumentLoadTiming_h
#include "core/CoreExport.h"
+#include "platform/heap/Handle.h"
#include "wtf/CurrentTime.h"
+#include "wtf/WeakPtr.h"
namespace blink {
+class DocumentLoader;
class KURL;
class CORE_EXPORT DocumentLoadTiming {
public:
- DocumentLoadTiming();
+ DocumentLoadTiming(WeakPtrWillBeRawPtr<DocumentLoader>);
double monotonicTimeToZeroBasedDocumentTime(double) const;
double monotonicTimeToPseudoWallTime(double) const;
@@ -72,6 +75,7 @@ public:
private:
void setRedirectStart(double);
void markRedirectEnd();
+ void notifyDocumentTimingChanged();
double m_referenceMonotonicTime;
double m_referenceWallTime;
@@ -87,6 +91,8 @@ private:
double m_loadEventEnd;
bool m_hasCrossOriginRedirect;
bool m_hasSameOriginAsPreviousDocument;
+
+ WeakPtrWillBeRawPtr<DocumentLoader> m_documentLoader;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698