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

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

Issue 1304063016: Refactor the API for setting dynamic resource load priorities (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « Source/core/fetch/ResourceLoader.h ('k') | Source/core/fetch/ResourceLoaderSet.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ResourceLoader.cpp
diff --git a/Source/core/fetch/ResourceLoader.cpp b/Source/core/fetch/ResourceLoader.cpp
index be3969ee8743334b159c6d6684be98c343c3ba5b..ce3d703c0196f47460fd95a32f0521b02a94861f 100644
--- a/Source/core/fetch/ResourceLoader.cpp
+++ b/Source/core/fetch/ResourceLoader.cpp
@@ -206,16 +206,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 | « Source/core/fetch/ResourceLoader.h ('k') | Source/core/fetch/ResourceLoaderSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698