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

Unified Diff: chrome/browser/predictors/resource_prefetch_predictor.proto

Issue 1866483002: Add a new priority level, THROTTLED, below IDLE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjusted predictor priorities. Created 4 years, 2 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: chrome/browser/predictors/resource_prefetch_predictor.proto
diff --git a/chrome/browser/predictors/resource_prefetch_predictor.proto b/chrome/browser/predictors/resource_prefetch_predictor.proto
index 023b27d93878bb594fe49c7b5d2fad1668cc980c..40e3681d08704999ec6a3e18d544c8aea5d0a1a0 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor.proto
+++ b/chrome/browser/predictors/resource_prefetch_predictor.proto
@@ -40,11 +40,12 @@ message ResourceData {
// Mirrors net::RequestPriority
enum Priority {
- REQUEST_PRIORITY_IDLE = 0;
- REQUEST_PRIORITY_LOWEST = 1;
- REQUEST_PRIORITY_LOW = 2;
- REQUEST_PRIORITY_MEDIUM = 3;
- REQUEST_PRIORITY_HIGHEST = 4;
+ REQUEST_PRIORITY_THROTTLED = 0;
+ REQUEST_PRIORITY_IDLE = 1;
+ REQUEST_PRIORITY_LOWEST = 2;
+ REQUEST_PRIORITY_LOW = 3;
+ REQUEST_PRIORITY_MEDIUM = 4;
+ REQUEST_PRIORITY_HIGHEST = 5;
}
optional string resource_url = 1;

Powered by Google App Engine
This is Rietveld 408576698