Chromium Code Reviews

Unified Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.h

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.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/Source/core/frame/LocalDOMWindow.h
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.h b/third_party/WebKit/Source/core/frame/LocalDOMWindow.h
index d358a0fbba06dc41d86d0d631a03fcfe4f9907e2..b72f3424f3caf0da6817200ee9c2413f9fff6956 100644
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.h
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.h
@@ -316,6 +316,9 @@ class CORE_EXPORT LocalDOMWindow final : public DOMWindow,
FloatSize GetViewportSize(IncludeScrollbarsInRect) const;
+ void SetHasLoadEventFired() { has_load_event_fired_ = true; }
+ bool HasLoadEventFired() { return has_load_event_fired_; }
+
protected:
// EventTarget overrides.
void AddedEventListener(const AtomicString& event_type,
@@ -346,6 +349,7 @@ class CORE_EXPORT LocalDOMWindow final : public DOMWindow,
TaskRunnerTimer<LocalDOMWindow> unused_preloads_timer_;
bool should_print_when_finished_loading_;
+ bool has_load_event_fired_ = false;
mutable Member<Screen> screen_;
mutable Member<History> history_;

Powered by Google App Engine