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

Unified Diff: content/public/browser/resource_dispatcher_host.h

Issue 2807163002: [Prerender] Restore request priorities when swapped in (Closed)
Patch Set: Fix test: default image priority can be LOWEST or MEDIUM Created 3 years, 8 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/browser/loader/resource_scheduler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/resource_dispatcher_host.h
diff --git a/content/public/browser/resource_dispatcher_host.h b/content/public/browser/resource_dispatcher_host.h
index 4838b48766d2999da16400a6ff0c42405cae496f..6f2f26f3a10508ea0b7676363e8a257531150632 100644
--- a/content/public/browser/resource_dispatcher_host.h
+++ b/content/public/browser/resource_dispatcher_host.h
@@ -12,6 +12,7 @@
#include "base/callback_forward.h"
#include "content/common/content_export.h"
+#include "net/base/request_priority.h"
namespace net {
class URLRequest;
@@ -84,6 +85,11 @@ class CONTENT_EXPORT ResourceDispatcherHost {
const std::string& starts_with,
const InterceptorCallback& interceptor) = 0;
+ // Updates the priority for |request|. Modifies request->priority(), and may
+ // start the request loading if it wasn't already started.
+ virtual void ReprioritizeRequest(net::URLRequest* request,
+ net::RequestPriority priority) = 0;
+
protected:
virtual ~ResourceDispatcherHost() {}
};
« no previous file with comments | « content/browser/loader/resource_scheduler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698