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

Unified Diff: chrome/browser/predictors/resource_prefetch_common.cc

Issue 2796783004: predictors: Add origin learning. (Closed)
Patch Set: Advancing our amazing database version number. 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: chrome/browser/predictors/resource_prefetch_common.cc
diff --git a/chrome/browser/predictors/resource_prefetch_common.cc b/chrome/browser/predictors/resource_prefetch_common.cc
index b48bf805120a905a1cc2631773db810fb8f9351f..5fc243b21a9c92ff7a64f072112c2420996216fc 100644
--- a/chrome/browser/predictors/resource_prefetch_common.cc
+++ b/chrome/browser/predictors/resource_prefetch_common.cc
@@ -132,13 +132,14 @@ ResourcePrefetchPredictorConfig::ResourcePrefetchPredictorConfig()
max_hosts_to_track(200),
min_url_visit_count(2),
max_resources_per_entry(50),
+ max_origins_per_entry(50),
max_consecutive_misses(3),
min_resource_confidence_to_trigger_prefetch(0.7f),
min_resource_hits_to_trigger_prefetch(2),
max_prefetches_inflight_per_navigation(5),
max_prefetches_inflight_per_host_per_navigation(3),
- is_url_learning_enabled(false) {
-}
+ is_url_learning_enabled(false),
+ is_origin_prediction_enabled(false) {}
alexilin 2017/04/10 14:58:27 nit: Could you add the check of default value for
Benoit L 2017/04/11 09:04:05 Done.
ResourcePrefetchPredictorConfig::ResourcePrefetchPredictorConfig(
const ResourcePrefetchPredictorConfig& other) = default;

Powered by Google App Engine
This is Rietveld 408576698