| Index: content/common/resource_dispatcher.cc
|
| diff --git a/content/common/resource_dispatcher.cc b/content/common/resource_dispatcher.cc
|
| index 63a794cf9e2dc909296287bda127381223c02705..ecb03aa89a64f6422976ac9503bce22ced1ba896 100644
|
| --- a/content/common/resource_dispatcher.cc
|
| +++ b/content/common/resource_dispatcher.cc
|
| @@ -62,6 +62,7 @@ class IPCResourceLoaderBridge : public ResourceLoaderBridge {
|
| virtual bool Start(Peer* peer);
|
| virtual void Cancel();
|
| virtual void SetDefersLoading(bool value);
|
| + virtual void DidChangePriority(WebKit::WebURLRequest::Priority new_priority);
|
| virtual void SyncLoad(SyncLoadResponse* response);
|
|
|
| private:
|
| @@ -193,6 +194,16 @@ void IPCResourceLoaderBridge::SetDefersLoading(bool value) {
|
| dispatcher_->SetDefersLoading(request_id_, value);
|
| }
|
|
|
| +void IPCResourceLoaderBridge::DidChangePriority(
|
| + WebKit::WebURLRequest::Priority new_priority) {
|
| + if (request_id_ < 0) {
|
| + NOTREACHED() << "Trying to change priority of an unstarted request";
|
| + return;
|
| + }
|
| +
|
| + dispatcher_->DidChangePriority(routing_id_, request_id_, new_priority);
|
| +}
|
| +
|
| void IPCResourceLoaderBridge::SyncLoad(SyncLoadResponse* response) {
|
| if (request_id_ != -1) {
|
| NOTREACHED() << "Starting a request twice";
|
| @@ -549,6 +560,14 @@ void ResourceDispatcher::SetDefersLoading(int request_id, bool value) {
|
| }
|
| }
|
|
|
| +void ResourceDispatcher::DidChangePriority(
|
| + int routing_id, int request_id,
|
| + WebKit::WebURLRequest::Priority new_priority) {
|
| + DCHECK(ContainsKey(pending_requests_, request_id));
|
| + message_sender()->Send(new ResourceHostMsg_DidChangePriority(
|
| + routing_id, request_id, new_priority));
|
| +}
|
| +
|
| ResourceDispatcher::PendingRequestInfo::PendingRequestInfo()
|
| : peer(NULL),
|
| resource_type(ResourceType::SUB_RESOURCE),
|
|
|