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

Unified Diff: content/browser/loader/resource_scheduler.h

Issue 146333004: Introduce an intra-priority level sorting value - Chromium Side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: content/browser/loader/resource_scheduler.h
diff --git a/content/browser/loader/resource_scheduler.h b/content/browser/loader/resource_scheduler.h
index b374b6ccb3b22e66cfdaed114b6f14aa4b633b0e..7bb9963e9d4aecb10083d2f6f9678bfc72482780 100644
--- a/content/browser/loader/resource_scheduler.h
+++ b/content/browser/loader/resource_scheduler.h
@@ -87,6 +87,10 @@ class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe {
private:
class RequestQueue;
class ScheduledResourceRequest;
+ struct ScheduledResourceSorter {
+ bool operator()(const ScheduledResourceRequest* a,
+ const ScheduledResourceRequest* b) const;
+ };
struct Client;
typedef int64 ClientId;
@@ -106,7 +110,8 @@ class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe {
// reprioritized, it will move to the end of the queue for that priority
// level.
void ReprioritizeRequest(ScheduledResourceRequest* request,
- net::RequestPriority new_priority);
+ net::RequestPriority new_priority,
+ int intra_priority_value);
// Attempts to load any pending requests in |client|, based on the
// results of ShouldStartRequest().
« no previous file with comments | « no previous file | content/browser/loader/resource_scheduler.cc » ('j') | content/browser/loader/resource_scheduler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698