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

Side by Side Diff: chrome/browser/predictors/resource_prefetch_common.h

Issue 2321343002: Redirect handling in resource prefetch predictor (Closed)
Patch Set: Redirects database schema changed Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_COMMON_H_ 5 #ifndef CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_COMMON_H_
6 #define CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_COMMON_H_ 6 #define CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_COMMON_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 size_t max_urls_to_track; 97 size_t max_urls_to_track;
98 size_t max_hosts_to_track; 98 size_t max_hosts_to_track;
99 99
100 // The number of times we should have seen a visit to this URL in history 100 // The number of times we should have seen a visit to this URL in history
101 // to start tracking it. This is to ensure we don't bother with oneoff 101 // to start tracking it. This is to ensure we don't bother with oneoff
102 // entries. For hosts we track each one. 102 // entries. For hosts we track each one.
103 size_t min_url_visit_count; 103 size_t min_url_visit_count;
104 104
105 // The maximum number of resources to store per entry. 105 // The maximum number of resources to store per entry.
106 size_t max_resources_per_entry; 106 size_t max_resources_per_entry;
107 // The maximum number of redirects to store per entry.
Benoit L 2016/09/19 13:53:47 I'm not 100% sure that we really need a setting fo
108 size_t max_redirects_per_entry;
107 // The number of consecutive misses after we stop tracking a resource URL. 109 // The number of consecutive misses after we stop tracking a resource URL.
108 size_t max_consecutive_misses; 110 size_t max_consecutive_misses;
109 111
110 // The minimum confidence (accuracy of hits) required for a resource to be 112 // The minimum confidence (accuracy of hits) required for a resource to be
111 // prefetched. 113 // prefetched.
112 float min_resource_confidence_to_trigger_prefetch; 114 float min_resource_confidence_to_trigger_prefetch;
113 // The minimum number of times we must have a URL on record to prefetch it. 115 // The minimum number of times we must have a URL on record to prefetch it.
114 size_t min_resource_hits_to_trigger_prefetch; 116 size_t min_resource_hits_to_trigger_prefetch;
115 117
116 // Maximum number of prefetches that can be inflight for a single navigation. 118 // Maximum number of prefetches that can be inflight for a single navigation.
117 size_t max_prefetches_inflight_per_navigation; 119 size_t max_prefetches_inflight_per_navigation;
118 // Maximum number of prefetches that can be inflight for a host for a single 120 // Maximum number of prefetches that can be inflight for a host for a single
119 // navigation. 121 // navigation.
120 size_t max_prefetches_inflight_per_host_per_navigation; 122 size_t max_prefetches_inflight_per_host_per_navigation;
121 }; 123 };
122 124
123 } // namespace predictors 125 } // namespace predictors
124 126
125 #endif // CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_COMMON_H_ 127 #endif // CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698