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

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

Issue 2799093004: Enable ServerTiming support
Patch Set: update code formatting and comments 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 bf0c5848ce1bd18520d140d4a05638f37679d4f6..e80c80088391b0cbd77d54b5566cca865b324fe2 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceBase.h
+++ b/third_party/WebKit/Source/core/timing/PerformanceBase.h
@@ -111,6 +111,12 @@ class CORE_EXPORT PerformanceBase : public EventTargetWithInlineData {
void addResourceTiming(const ResourceTimingInfo&);
+ enum class ShouldAddToBuffer {
+ Always,
+ Never,
+ };
+ void addServerTiming(const ResourceResponse&, const ShouldAddToBuffer&);
Charlie Harrison 2017/04/07 12:43:01 ShouldAddtoBuffer does not need to be const.
+
void notifyNavigationTimingToObservers();
void addFirstPaintTiming(double startTime);
@@ -171,6 +177,7 @@ class CORE_EXPORT PerformanceBase : public EventTargetWithInlineData {
unsigned m_frameTimingBufferSize;
PerformanceEntryVector m_resourceTimingBuffer;
unsigned m_resourceTimingBufferSize;
+ PerformanceEntryVector m_serverTimingBuffer;
Member<PerformanceEntry> m_navigationTiming;
Member<UserTiming> m_userTiming;

Powered by Google App Engine
This is Rietveld 408576698