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

Unified Diff: content/browser/loader/resource_scheduler.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
Index: content/browser/loader/resource_scheduler.h
diff --git a/content/browser/loader/resource_scheduler.h b/content/browser/loader/resource_scheduler.h
index bcb3213a3d691178543d3a21c79ab592afcd8a4a..71014ce122f0598ccb85de7f173cc537fcbddfff 100644
--- a/content/browser/loader/resource_scheduler.h
+++ b/content/browser/loader/resource_scheduler.h
@@ -97,11 +97,16 @@ class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe {
// Returns true if at least one client is currently loading.
bool HasLoadingClients() const;
- // Update the priority for |request|. Modifies request->priority(), and may
+ // Updates the priority for |request|. Modifies request->priority(), and may
// start the request loading if it wasn't already started.
+ // If the scheduler does not know about the request, |new_priority| is set but
+ // |intra_priority_value| is ignored.
void ReprioritizeRequest(net::URLRequest* request,
net::RequestPriority new_priority,
int intra_priority_value);
+ // Same as above, but keeps the existing intra priority value.
+ void ReprioritizeRequest(net::URLRequest* request,
+ net::RequestPriority new_priority);
private:
// Returns the maximum number of delayable requests to all be in-flight at
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.cc ('k') | content/browser/loader/resource_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698