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

Side by Side Diff: third_party/WebKit/Source/core/timing/PerformanceBase.h

Issue 2962113002: Updates to Server-Timing in accordance with with spec changes (Closed)
Patch Set: fix web-platform-tests Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 void AddLongTaskTiming(double start_time, 106 void AddLongTaskTiming(double start_time,
107 double end_time, 107 double end_time,
108 const String& name, 108 const String& name,
109 const String& culprit_frame_src, 109 const String& culprit_frame_src,
110 const String& culprit_frame_id, 110 const String& culprit_frame_id,
111 const String& culprit_frame_name); 111 const String& culprit_frame_name);
112 112
113 void AddResourceTiming(const ResourceTimingInfo&); 113 void AddResourceTiming(const ResourceTimingInfo&);
114 114
115 enum class ShouldAddToBuffer {
116 Always,
117 Never,
118 };
119 void AddServerTiming(const ResourceResponse&, ShouldAddToBuffer);
120
121 void NotifyNavigationTimingToObservers(); 115 void NotifyNavigationTimingToObservers();
122 116
123 void AddFirstPaintTiming(double start_time); 117 void AddFirstPaintTiming(double start_time);
124 118
125 void AddFirstContentfulPaintTiming(double start_time); 119 void AddFirstContentfulPaintTiming(double start_time);
126 120
127 void mark(const String& mark_name, ExceptionState&); 121 void mark(const String& mark_name, ExceptionState&);
128 void clearMarks(const String& mark_name); 122 void clearMarks(const String& mark_name);
129 123
130 void measure(const String& measure_name, 124 void measure(const String& measure_name,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 void NotifyObserversOfEntry(PerformanceEntry&); 166 void NotifyObserversOfEntry(PerformanceEntry&);
173 void NotifyObserversOfEntries(PerformanceEntryVector&); 167 void NotifyObserversOfEntries(PerformanceEntryVector&);
174 bool HasObserverFor(PerformanceEntry::EntryType) const; 168 bool HasObserverFor(PerformanceEntry::EntryType) const;
175 169
176 void DeliverObservationsTimerFired(TimerBase*); 170 void DeliverObservationsTimerFired(TimerBase*);
177 171
178 PerformanceEntryVector frame_timing_buffer_; 172 PerformanceEntryVector frame_timing_buffer_;
179 unsigned frame_timing_buffer_size_; 173 unsigned frame_timing_buffer_size_;
180 PerformanceEntryVector resource_timing_buffer_; 174 PerformanceEntryVector resource_timing_buffer_;
181 unsigned resource_timing_buffer_size_; 175 unsigned resource_timing_buffer_size_;
182 PerformanceEntryVector server_timing_buffer_;
183 Member<PerformanceEntry> navigation_timing_; 176 Member<PerformanceEntry> navigation_timing_;
184 Member<UserTiming> user_timing_; 177 Member<UserTiming> user_timing_;
185 Member<PerformanceEntry> first_paint_timing_; 178 Member<PerformanceEntry> first_paint_timing_;
186 Member<PerformanceEntry> first_contentful_paint_timing_; 179 Member<PerformanceEntry> first_contentful_paint_timing_;
187 180
188 double time_origin_; 181 double time_origin_;
189 182
190 PerformanceEntryTypeMask observer_filter_options_; 183 PerformanceEntryTypeMask observer_filter_options_;
191 PerformanceObservers observers_; 184 PerformanceObservers observers_;
192 PerformanceObservers active_observers_; 185 PerformanceObservers active_observers_;
193 PerformanceObservers suspended_observers_; 186 PerformanceObservers suspended_observers_;
194 TaskRunnerTimer<PerformanceBase> deliver_observations_timer_; 187 TaskRunnerTimer<PerformanceBase> deliver_observations_timer_;
195 }; 188 };
196 189
197 } // namespace blink 190 } // namespace blink
198 191
199 #endif // PerformanceBase_h 192 #endif // PerformanceBase_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/timing/Performance.cpp ('k') | third_party/WebKit/Source/core/timing/PerformanceBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698