Index: Source/core/dom/DocumentTiming.h |
diff --git a/Source/core/dom/DocumentTiming.h b/Source/core/dom/DocumentTiming.h |
index 7804c42d230917be93f6da518e4f9a2e92beb4ff..14f72f88c66575e427ec96b8e2cbf1821c12b20e 100644 |
--- a/Source/core/dom/DocumentTiming.h |
+++ b/Source/core/dom/DocumentTiming.h |
@@ -26,11 +26,15 @@ |
#ifndef DocumentTiming_h |
#define DocumentTiming_h |
+#include "platform/heap/Handle.h" |
+ |
namespace blink { |
+class Document; |
+ |
class DocumentTiming { |
public: |
- DocumentTiming(); |
+ DocumentTiming(WeakPtrWillBeRawPtr<Document>); |
dcheng
2015/08/18 17:24:47
Why does this need to be a WeakPtr? Isn't this own
|
void markDomLoading(); |
void markDomInteractive(); |
@@ -47,12 +51,16 @@ public: |
double firstLayout() const { return m_firstLayout; } |
private: |
+ void notifyDocumentTimingChanged(); |
+ |
double m_domLoading; |
double m_domInteractive; |
double m_domContentLoadedEventStart; |
double m_domContentLoadedEventEnd; |
double m_domComplete; |
double m_firstLayout; |
+ |
+ WeakPtrWillBeRawPtr<Document> m_document; |
}; |
} |