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

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

Issue 1246493002: Fix Resource Priorities and Scheduling (Blink Side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added comments Created 5 years, 4 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: Source/core/loader/FrameFetchContext.cpp
diff --git a/Source/core/loader/FrameFetchContext.cpp b/Source/core/loader/FrameFetchContext.cpp
index 226cec882ad1009ff374d4543a9bd7c0ec745e1e..d1b22f4c17c4d93098934db3003799f281bc63e5 100644
--- a/Source/core/loader/FrameFetchContext.cpp
+++ b/Source/core/loader/FrameFetchContext.cpp
@@ -675,6 +675,27 @@ bool FrameFetchContext::isLowPriorityIframe() const
return !frame()->isMainFrame() && frame()->settings() && frame()->settings()->lowPriorityIframes();
}
+bool FrameFetchContext::fetchDeferLateScripts() const
+{
+ return !frame()->settings() ? 0 : frame()->settings()->fetchDeferLateScripts();
Bryan McQuade 2015/08/10 19:27:09 can we do return frame()->settings() && frame()->
Pat Meenan 2015/08/10 20:21:17 Oh yeah, thanks. Left over from when it was an in
+}
+
+bool FrameFetchContext::fetchIncreaseFontPriority() const
+{
+ return !frame()->settings() ? 0 : frame()->settings()->fetchIncreaseFontPriority();
+}
+
+bool FrameFetchContext::fetchIncreaseAsyncScriptPriority() const
+{
+ return !frame()->settings() ? 0 : frame()->settings()->fetchIncreaseAsyncScriptPriority();
+}
+
+bool FrameFetchContext::fetchIncreasePriorities() const
+{
+ return !frame()->settings() ? 0 : frame()->settings()->fetchIncreasePriorities();
+}
+
+
DEFINE_TRACE(FrameFetchContext)
{
visitor->trace(m_document);
« Source/core/fetch/ResourceLoadPriorityOptimizer.cpp ('K') | « Source/core/loader/FrameFetchContext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698