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

Unified Diff: chrome/browser/predictors/resource_prefetch_predictor_tables.h

Issue 2260573002: predictors: Track whether resources have validators, and require validation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make Visual Studio happy. Created 4 years, 4 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_tables.h
diff --git a/chrome/browser/predictors/resource_prefetch_predictor_tables.h b/chrome/browser/predictors/resource_prefetch_predictor_tables.h
index 073df33e01f3b9346e4695eea59732a5368eee70..74dee1e670aac3e41a0325957d19687dd097720e 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor_tables.h
+++ b/chrome/browser/predictors/resource_prefetch_predictor_tables.h
@@ -48,7 +48,9 @@ class ResourcePrefetchPredictorTables : public PredictorTableBase {
int number_of_misses,
int consecutive_misses,
double average_position,
- net::RequestPriority priority);
+ net::RequestPriority priority,
+ bool has_validators,
+ bool always_revalidate);
void UpdateScore();
bool operator==(const ResourceRow& rhs) const;
@@ -64,6 +66,8 @@ class ResourcePrefetchPredictorTables : public PredictorTableBase {
size_t consecutive_misses;
double average_position;
net::RequestPriority priority;
+ bool has_validators;
+ bool always_revalidate;
// Not stored.
float score;

Powered by Google App Engine
This is Rietveld 408576698