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

Unified Diff: third_party/WebKit/Source/core/fetch/ResourceLoader.cpp

Issue 1378743002: Refactor the API for setting dynamic resource load priorities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better names / cleanup Created 5 years, 2 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/fetch/ResourceLoader.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp b/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp
index 935c7e8819a6b607b2f627883fb765a65005678d..fdb7702240436cf3641a10d091e6e44fa427c8aa 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp
+++ b/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp
@@ -207,16 +207,9 @@ void ResourceLoader::didFinishLoadingOnePart(double finishTime, int64_t encodedD
void ResourceLoader::didChangePriority(ResourceLoadPriority loadPriority, int intraPriorityValue)
{
- if (m_loader) {
- m_fetcher->didChangeLoadingPriority(m_resource, loadPriority, intraPriorityValue);
- ASSERT(m_state != Terminated);
+ ASSERT(m_state != Terminated);
+ if (m_loader)
m_loader->didChangePriority(static_cast<WebURLRequest::Priority>(loadPriority), intraPriorityValue);
- }
-}
-
-bool ResourceLoader::shouldUseIncreasedPriorities()
-{
- return m_fetcher->context().fetchIncreasePriorities();
}
void ResourceLoader::cancelIfNotFinishing()
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceLoader.h ('k') | third_party/WebKit/Source/core/fetch/ResourceLoaderSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698