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

Unified Diff: third_party/WebKit/Source/core/timing/PerformanceBase.h

Issue 2472583003: Navigation Timing Level 2 (Closed)
Patch Set: First working version Created 4 years, 1 month 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: third_party/WebKit/Source/core/timing/PerformanceBase.h
diff --git a/third_party/WebKit/Source/core/timing/PerformanceBase.h b/third_party/WebKit/Source/core/timing/PerformanceBase.h
index 0f23af16e12006e0664fad41557c80ffcdbe99b8..0aedb280c4370fc08e7da0ee2e2070bf8f99d5fc 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceBase.h
+++ b/third_party/WebKit/Source/core/timing/PerformanceBase.h
@@ -47,7 +47,11 @@ namespace blink {
class DOMWindow;
class Document;
+class DocumentLoader;
+class DocumentLoadTiming;
+class DocumentTiming;
class ExceptionState;
+class LocalFrame;
class PerformanceObserver;
class PerformanceTiming;
class ResourceTimingInfo;
@@ -86,6 +90,7 @@ class CORE_EXPORT PerformanceBase : public EventTargetWithInlineData {
const String& entryType);
void clearResourceTimings();
+ void clearNavigationTimings();
void setResourceTimingBufferSize(unsigned);
DEFINE_ATTRIBUTE_EVENT_LISTENER(resourcetimingbufferfull);
@@ -100,6 +105,8 @@ class CORE_EXPORT PerformanceBase : public EventTargetWithInlineData {
void addResourceTiming(const ResourceTimingInfo&);
+ void addNavigationTiming(LocalFrame*);
+
void mark(const String& markName, ExceptionState&);
void clearMarks(const String& markName);
@@ -115,6 +122,11 @@ class CORE_EXPORT PerformanceBase : public EventTargetWithInlineData {
void activateObserver(PerformanceObserver&);
void resumeSuspendedObservers();
+ static const DocumentLoader* documentLoader(LocalFrame*);
panicker 2016/11/02 20:12:37 why are these public? Prefer moving them to anonym
sunjian 2016/11/04 01:12:39 Done.
+ static const DocumentLoadTiming* documentLoadTiming(LocalFrame*);
+ static const DocumentTiming* documentTiming(LocalFrame*);
+ static AtomicString getNavigationType(LocalFrame*);
+
DECLARE_VIRTUAL_TRACE();
protected:
@@ -135,6 +147,7 @@ class CORE_EXPORT PerformanceBase : public EventTargetWithInlineData {
unsigned m_frameTimingBufferSize;
PerformanceEntryVector m_resourceTimingBuffer;
unsigned m_resourceTimingBufferSize;
+ PerformanceEntryVector m_navigationTimingBuffer;
Member<UserTiming> m_userTiming;
double m_timeOrigin;

Powered by Google App Engine
This is Rietveld 408576698