| 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
|
|
|