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 d391789622a02bbf0f94f3ff4cdb6a3071e46b47..e223643b6338b1b72178fbd342d7842044019735 100644 |
--- a/third_party/WebKit/Source/core/timing/PerformanceBase.h |
+++ b/third_party/WebKit/Source/core/timing/PerformanceBase.h |
@@ -112,6 +112,12 @@ class CORE_EXPORT PerformanceBase : public EventTargetWithInlineData { |
void AddResourceTiming(const ResourceTimingInfo&); |
+ enum class ShouldAddToBuffer { |
+ Always, |
+ Never, |
+ }; |
+ void AddServerTiming(const ResourceResponse&, ShouldAddToBuffer); |
+ |
void NotifyNavigationTimingToObservers(); |
void AddFirstPaintTiming(double start_time); |
@@ -164,6 +170,7 @@ class CORE_EXPORT PerformanceBase : public EventTargetWithInlineData { |
void AddFrameTimingBuffer(PerformanceEntry&); |
void NotifyObserversOfEntry(PerformanceEntry&); |
+ void NotifyObserversOfEntries(PerformanceEntryVector&); |
bool HasObserverFor(PerformanceEntry::EntryType) const; |
void DeliverObservationsTimerFired(TimerBase*); |
@@ -172,6 +179,7 @@ class CORE_EXPORT PerformanceBase : public EventTargetWithInlineData { |
unsigned frame_timing_buffer_size_; |
PerformanceEntryVector resource_timing_buffer_; |
unsigned resource_timing_buffer_size_; |
+ PerformanceEntryVector server_timing_buffer_; |
Member<PerformanceEntry> navigation_timing_; |
Member<UserTiming> user_timing_; |