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

Unified Diff: Source/core/loader/FrameFetchContext.cpp

Issue 1195023002: Add a Setting to make iframes load at VeryLow priority, disabled by default. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Assume ApplyFromString(), call isLowPriorityIframe() from loadPriority() Created 5 years, 6 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
« no previous file with comments | « Source/core/loader/FrameFetchContext.h ('k') | Source/core/loader/LinkLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/FrameFetchContext.cpp
diff --git a/Source/core/loader/FrameFetchContext.cpp b/Source/core/loader/FrameFetchContext.cpp
index a84050081935b97bf79a366d41ab8bdb70db03be..a753421111309f1394c1744461de473459ce320d 100644
--- a/Source/core/loader/FrameFetchContext.cpp
+++ b/Source/core/loader/FrameFetchContext.cpp
@@ -656,6 +656,11 @@ void FrameFetchContext::countClientHintsViewportWidth()
UseCounter::count(frame(), UseCounter::ClientHintsViewportWidth);
}
+bool FrameFetchContext::isLowPriorityIframe() const
+{
+ return !frame()->isMainFrame() && frame()->settings() && frame()->settings()->lowPriorityIframes();
+}
+
DEFINE_TRACE(FrameFetchContext)
{
visitor->trace(m_document);
« no previous file with comments | « Source/core/loader/FrameFetchContext.h ('k') | Source/core/loader/LinkLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698