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

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

Issue 10900037: Adding more histograms to ResourcePrefetchPredictor. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixing issue with histograms not initializing correctly. 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PREDICTOR_H_ 5 #ifndef CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_H_
6 #define CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_H_ 6 #define CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // Size of LRU caches for the Url data. 75 // Size of LRU caches for the Url data.
76 size_t max_urls_to_track; // Default 500 76 size_t max_urls_to_track; // Default 500
77 // The number of times, we should have seen a visit to this Url in history 77 // The number of times, we should have seen a visit to this Url in history
78 // to start tracking it. This is to ensure we dont bother with oneoff 78 // to start tracking it. This is to ensure we dont bother with oneoff
79 // entries. 79 // entries.
80 int min_url_visit_count; // Default 3 80 int min_url_visit_count; // Default 3
81 // The maximum number of resources to store per entry. 81 // The maximum number of resources to store per entry.
82 int max_resources_per_entry; // Default 50 82 int max_resources_per_entry; // Default 50
83 // The number of consecutive misses after we stop tracking a resource Url. 83 // The number of consecutive misses after we stop tracking a resource Url.
84 int max_consecutive_misses; // Default 3 84 int max_consecutive_misses; // Default 3
85 // The number of resources we should report accuracy stats on.
86 int num_resources_assumed_prefetched; // Default 25
87 }; 85 };
88 86
89 // Stores the data that we need to get from the URLRequest. 87 // Stores the data that we need to get from the URLRequest.
90 struct URLRequestSummary { 88 struct URLRequestSummary {
91 URLRequestSummary(); 89 URLRequestSummary();
92 URLRequestSummary(const URLRequestSummary& other); 90 URLRequestSummary(const URLRequestSummary& other);
93 ~URLRequestSummary(); 91 ~URLRequestSummary();
94 92
95 NavigationID navigation_id; 93 NavigationID navigation_id;
96 GURL resource_url; 94 GURL resource_url;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 206
209 NavigationMap inflight_navigations_; 207 NavigationMap inflight_navigations_;
210 UrlTableCacheMap url_table_cache_; 208 UrlTableCacheMap url_table_cache_;
211 209
212 DISALLOW_COPY_AND_ASSIGN(ResourcePrefetchPredictor); 210 DISALLOW_COPY_AND_ASSIGN(ResourcePrefetchPredictor);
213 }; 211 };
214 212
215 } // namespace predictors 213 } // namespace predictors
216 214
217 #endif // CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_H_ 215 #endif // CHROME_BROWSER_PREDICTORS_RESOURCE_PREFETCH_PREDICTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698