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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 12243002: Pass WebKit priority changes and parsing messages up to the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename IPC Created 7 years, 10 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 | « no previous file | content/common/resource_dispatcher.h » ('j') | content/common/view_messages.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_dispatcher_host_impl.cc
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
index 9dcf49e5fe3cbec993ffd3faf6eee11dd7649677..48f22bf97b2bdc283d1f9360bf3e884f43315bce 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -203,31 +203,6 @@ void RemoveDownloadFileFromChildSecurityPolicy(int child_id,
#pragma warning(default: 4748)
#endif
-net::RequestPriority DetermineRequestPriority(
- const ResourceHostMsg_Request& request_data) {
- switch (request_data.priority) {
- case WebKit::WebURLRequest::PriorityVeryHigh:
- return net::HIGHEST;
-
- case WebKit::WebURLRequest::PriorityHigh:
- return net::MEDIUM;
-
- case WebKit::WebURLRequest::PriorityMedium:
- return net::LOW;
-
- case WebKit::WebURLRequest::PriorityLow:
- return net::LOWEST;
-
- case WebKit::WebURLRequest::PriorityVeryLow:
- return net::IDLE;
-
- case WebKit::WebURLRequest::PriorityUnresolved:
- default:
- NOTREACHED();
- return net::LOW;
- }
-}
-
void OnSwapOutACKHelper(int render_process_id,
int render_view_id,
bool timed_out) {
@@ -921,8 +896,7 @@ void ResourceDispatcherHostImpl::BeginRequest(
// transferred navigation case?
request->set_load_flags(load_flags);
-
- request->set_priority(DetermineRequestPriority(request_data));
+ request->set_priority(request_data.priority);
// Resolve elements from request_body and prepare upload data.
if (request_data.request_body) {
« no previous file with comments | « no previous file | content/common/resource_dispatcher.h » ('j') | content/common/view_messages.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698