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

Unified Diff: webkit/glue/resource_loader_bridge.h

Issue 11270027: Add a ResourceScheduler to ResourceDispatcherHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move Client back to .h -- broke Win 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 | « content/renderer/render_view_impl.cc ('k') | webkit/glue/resource_loader_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | webkit/glue/resource_loader_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698