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

Unified Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.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/frame/LocalDOMWindow.h
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.h b/third_party/WebKit/Source/core/frame/LocalDOMWindow.h
index 90d1ab9378c0da8b31f197d4c31767d818a3a617..85dc0e9f5d6c8d0178ce1c0984dffb44f4a5f638 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
This is Rietveld 408576698