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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp

Issue 2982523002: Set "ping" requests priority as lowest (Closed)
Patch Set: fix Created 3 years, 5 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 | « third_party/WebKit/Source/core/loader/PingLoaderTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
index 57ae8dea3348a3cfbe41ae484093189103aced6d..c95b85df2fa47e52de8050118b200877fabfa0d9 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
@@ -215,6 +215,13 @@ ResourceLoadPriority ResourceFetcher::ComputeLoadPriority(
}
} else if (FetchParameters::kLazyLoad == defer_option) {
priority = kResourceLoadPriorityVeryLow;
+ } else if (resource_request.GetRequestContext() ==
+ WebURLRequest::kRequestContextBeacon ||
+ resource_request.GetRequestContext() ==
+ WebURLRequest::kRequestContextPing ||
+ resource_request.GetRequestContext() ==
+ WebURLRequest::kRequestContextCSPReport) {
+ priority = kResourceLoadPriorityVeryLow;
}
// A manually set priority acts as a floor. This is used to ensure that
« no previous file with comments | « third_party/WebKit/Source/core/loader/PingLoaderTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698