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

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

Issue 2343623002: Add a warning whenever link preloads are not used (Closed)
Patch Set: Review comments Created 4 years, 3 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 43e2d0e5fbef28264f5c607736074d374f1ceaf0..04c1ea594fc753cf83a6e75abacdccb2184950c0 100644
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.h
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.h
@@ -224,6 +224,7 @@ private:
// already LocalDOMWindow.
bool isLocalDOMWindow() const override { return true; }
bool isRemoteDOMWindow() const override { return false; }
+ void warnUnusedPreloads(TimerBase*);
explicit LocalDOMWindow(LocalFrame&);
void dispose();
@@ -236,6 +237,7 @@ private:
Member<LocalFrame> m_frame;
Member<Document> m_document;
Member<DOMVisualViewport> m_visualViewport;
+ Timer<LocalDOMWindow> m_unusedPreloadsTimer;
bool m_shouldPrintWhenFinishedLoading;

Powered by Google App Engine
This is Rietveld 408576698