Chromium Code Reviews| 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; |
| }; |
| } |