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

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

Issue 2640343002: predictors: Add precision / recall histograms for speculative prefetch. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/predictors/resource_prefetch_predictor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/predictors/resource_prefetch_predictor.h
diff --git a/chrome/browser/predictors/resource_prefetch_predictor.h b/chrome/browser/predictors/resource_prefetch_predictor.h
index fcc1e39a200d8a97d8a88955c4f241bb847c3009..ab2e70b3b1a833ff3fe4fbe4b9b29e94c95e112e 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor.h
+++ b/chrome/browser/predictors/resource_prefetch_predictor.h
@@ -38,6 +38,13 @@ class URLRequest;
namespace predictors {
+namespace internal {
+constexpr char kResourcePrefetchPredictorPrecisionHistogram[] =
+ "ResourcePrefetchPredictor.LearningPrecision";
+constexpr char kResourcePrefetchPredictorRecallHistogram[] =
+ "ResourcePrefetchPredictor.LearningRecall";
+} // namespace internal
+
class TestObserver;
class ResourcePrefetcherManager;
@@ -198,6 +205,8 @@ class ResourcePrefetchPredictor
PopulatePrefetcherRequest);
FRIEND_TEST_ALL_PREFIXES(ResourcePrefetchPredictorTest, GetRedirectEndpoint);
FRIEND_TEST_ALL_PREFIXES(ResourcePrefetchPredictorTest, GetPrefetchData);
+ FRIEND_TEST_ALL_PREFIXES(ResourcePrefetchPredictorTest,
+ TestPrecisionRecallHistograms);
enum InitializationState {
NOT_INITIALIZED = 0,
« no previous file with comments | « no previous file | chrome/browser/predictors/resource_prefetch_predictor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698