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

Unified Diff: third_party/WebKit/Source/core/timing/PerformanceObserver.cpp

Issue 2799093004: Enable ServerTiming support
Patch Set: server-timing 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/PerformanceObserver.cpp
diff --git a/third_party/WebKit/Source/core/timing/PerformanceObserver.cpp b/third_party/WebKit/Source/core/timing/PerformanceObserver.cpp
index ac49c2c2083853925e8c0abe089140044c32265d..d5885e324e2b066143b4310126d04c29c2505e5b 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceObserver.cpp
+++ b/third_party/WebKit/Source/core/timing/PerformanceObserver.cpp
@@ -69,6 +69,13 @@ void PerformanceObserver::disconnect() {
is_registered_ = false;
}
+void PerformanceObserver::MaybeEnqueuePerformanceEntry(
+ PerformanceEntry& entry) {
+ if (FilterOptions() & entry.EntryTypeEnum()) {
+ EnqueuePerformanceEntry(entry);
+ }
+}
+
void PerformanceObserver::EnqueuePerformanceEntry(PerformanceEntry& entry) {
ASSERT(IsMainThread());
performance_entries_.push_back(&entry);

Powered by Google App Engine
This is Rietveld 408576698