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

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

Issue 2839683003: Server-Timing (Closed)
Patch Set: make those robots happy, attempt #4 Created 3 years, 8 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: 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_;

Powered by Google App Engine
This is Rietveld 408576698