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

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

Issue 10817004: Adds speculative prefetching of resources. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressing Dominich's comment. Created 8 years, 3 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 5e87d43f1754f530a6ab4555b3b7ea3da005878d..ad4c0f9d22d5789696bd95a7abc74537373958a4 100644
--- a/chrome/browser/predictors/resource_prefetch_common.cc
+++ b/chrome/browser/predictors/resource_prefetch_common.cc
@@ -52,4 +52,16 @@ bool NavigationID::IsSameRenderer(const NavigationID& other) const {
render_view_id == other.render_view_id;
}
+ResourcePrefetchPredictorConfig::ResourcePrefetchPredictorConfig()
+ : max_navigation_lifetime_seconds(60),
+ max_urls_to_track(500),
+ min_url_visit_count(3),
+ max_resources_per_entry(50),
+ max_consecutive_misses(3),
+ min_resource_confidence_to_trigger_prefetch(0.8f),
+ min_resource_hits_to_trigger_prefetch(4),
+ max_prefetches_inflight_per_navigation(24),
+ max_prefetches_inflight_per_host_per_navigation(3) {
+}
+
} // namespace predictors

Powered by Google App Engine
This is Rietveld 408576698