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

Unified Diff: webkit/glue/weburlloader_impl.cc

Issue 12321055: Revert 183382 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1418/src/
Patch Set: 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 | « webkit/glue/weburlloader_impl.h ('k') | webkit/tools/test_shell/simple_resource_loader_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/weburlloader_impl.cc
===================================================================
--- webkit/glue/weburlloader_impl.cc (revision 183842)
+++ webkit/glue/weburlloader_impl.cc (working copy)
@@ -268,31 +268,6 @@
}
}
-net::RequestPriority ConvertWebKitPriorityToNetPriority(
- const WebURLRequest::Priority& priority) {
- switch (priority) {
- case WebURLRequest::PriorityVeryHigh:
- return net::HIGHEST;
-
- case WebURLRequest::PriorityHigh:
- return net::MEDIUM;
-
- case WebURLRequest::PriorityMedium:
- return net::LOW;
-
- case WebURLRequest::PriorityLow:
- return net::LOWEST;
-
- case WebURLRequest::PriorityVeryLow:
- return net::IDLE;
-
- case WebURLRequest::PriorityUnresolved:
- default:
- NOTREACHED();
- return net::LOW;
- }
-}
-
} // namespace
// WebURLLoaderImpl::Context --------------------------------------------------
@@ -310,7 +285,6 @@
void Cancel();
void SetDefersLoading(bool value);
- void DidChangePriority(WebURLRequest::Priority new_priority);
void Start(
const WebURLRequest& request,
ResourceLoaderBridge::SyncLoadResponse* sync_load_response,
@@ -380,13 +354,6 @@
bridge_->SetDefersLoading(value);
}
-void WebURLLoaderImpl::Context::DidChangePriority(
- WebURLRequest::Priority new_priority) {
- if (bridge_.get())
- bridge_->DidChangePriority(
- ConvertWebKitPriorityToNetPriority(new_priority));
-}
-
void WebURLLoaderImpl::Context::Start(
const WebURLRequest& request,
ResourceLoaderBridge::SyncLoadResponse* sync_load_response,
@@ -466,8 +433,7 @@
request_info.requestor_pid = request.requestorProcessID();
request_info.request_type =
ResourceType::FromTargetType(request.targetType());
- request_info.priority =
- ConvertWebKitPriorityToNetPriority(request.priority());
+ request_info.priority = request.priority();
request_info.appcache_host_id = request.appCacheHostID();
request_info.routing_id = request.requestorID();
request_info.download_to_file = request.downloadToFile();
@@ -818,8 +784,4 @@
context_->SetDefersLoading(value);
}
-void WebURLLoaderImpl::didChangePriority(WebURLRequest::Priority new_priority) {
- context_->DidChangePriority(new_priority);
-}
-
} // namespace webkit_glue
« no previous file with comments | « webkit/glue/weburlloader_impl.h ('k') | webkit/tools/test_shell/simple_resource_loader_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698