| Index: webkit/glue/resource_loader_bridge.h
|
| diff --git a/webkit/glue/resource_loader_bridge.h b/webkit/glue/resource_loader_bridge.h
|
| index 840c802b0fb9deac96cf24bda976367be849a527..9a36b89b5f903cdfd01eef14a64506390a808195 100644
|
| --- a/webkit/glue/resource_loader_bridge.h
|
| +++ b/webkit/glue/resource_loader_bridge.h
|
| @@ -30,6 +30,7 @@
|
| #include "base/values.h"
|
| #include "googleurl/src/gurl.h"
|
| #include "net/base/host_port_pair.h"
|
| +#include "net/base/request_priority.h"
|
| #include "net/url_request/url_request_status.h"
|
| #include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h"
|
| #include "third_party/WebKit/Source/Platform/chromium/public/WebURLRequest.h"
|
| @@ -247,7 +248,7 @@ class ResourceLoaderBridge {
|
| ResourceType::Type request_type;
|
|
|
| // Indicates the priority of this request, as determined by WebKit.
|
| - WebKit::WebURLRequest::Priority priority;
|
| + net::RequestPriority priority;
|
|
|
| // Used for plugin to browser requests.
|
| uint32 request_context;
|
| @@ -371,6 +372,11 @@ class ResourceLoaderBridge {
|
| // method may only be called after a successful call to the Start method.
|
| virtual void SetDefersLoading(bool value) = 0;
|
|
|
| + // Call this method when the priority of the requested resource changes after
|
| + // Start() has been called. This method may only be called after a successful
|
| + // call to the Start method.
|
| + virtual void DidChangePriority(net::RequestPriority new_priority) = 0;
|
| +
|
| // Call this method to load the resource synchronously (i.e., in one shot).
|
| // This is an alternative to the Start method. Be warned that this method
|
| // will block the calling thread until the resource is fully downloaded or an
|
|
|