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

Unified Diff: Source/core/dom/DocumentTiming.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/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;
};
}

Powered by Google App Engine
This is Rietveld 408576698