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

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

Issue 2397943004: predictors: Use redirect data in prefetch. (Closed)
Patch Set: Non-empty check. 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_tables.h
diff --git a/chrome/browser/predictors/resource_prefetch_predictor_tables.h b/chrome/browser/predictors/resource_prefetch_predictor_tables.h
index fe1d8fe38dc07ccf30ba1b806d0a60e8848e31b9..24aee556ff2c5b504acc976ef302d64f66baf212 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor_tables.h
+++ b/chrome/browser/predictors/resource_prefetch_predictor_tables.h
@@ -95,9 +95,6 @@ class ResourcePrefetchPredictorTables : public PredictorTableBase {
// misses from |data|.
static void TrimRedirects(RedirectData* data, size_t max_consecutive_misses);
- // Sorts the redirects by score, decreasing.
- static void SortRedirects(RedirectData* data);
-
// The maximum length of the string that can be stored in the DB.
static constexpr size_t kMaxStringLength = 1024;
@@ -135,7 +132,6 @@ class ResourcePrefetchPredictorTables : public PredictorTableBase {
// Computes score of |data|.
static float ComputeResourceScore(const ResourceData& data);
- static float ComputeRedirectScore(const RedirectStat& data);
// PredictorTableBase methods.
void CreateTableIfNonExistent() override;

Powered by Google App Engine
This is Rietveld 408576698