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

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: minor edits from review 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..b1dea1db3deab987c59e33a908e10a16ea91b48b 100644
--- a/Source/core/dom/DocumentTiming.h
+++ b/Source/core/dom/DocumentTiming.h
@@ -28,9 +28,16 @@
namespace blink {
+class Document;
+
class DocumentTiming {
public:
- DocumentTiming();
+ class Observer {
+ public:
+ virtual void onDocumentTimingChanged() const = 0;
Bryan McQuade 2015/08/14 15:14:16 conceptually this is a const method, but i tend to
Bryan McQuade 2015/08/14 15:23:24 On second thought, I'm totally ok with this being
+ };
+
+ DocumentTiming(Observer* document);
void markDomLoading();
void markDomInteractive();
@@ -47,12 +54,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;
+
+ Observer* m_observer;
};
}

Powered by Google App Engine
This is Rietveld 408576698