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

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

Issue 632033002: Add PLT measurement to Resource Prefetching for Mobile Web (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review fix Created 6 years, 1 month 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_predictor.h
diff --git a/chrome/browser/predictors/resource_prefetch_predictor.h b/chrome/browser/predictors/resource_prefetch_predictor.h
index c6eb7157c458f932467670b46cdffb12150189f1..1504370eadcad3230a58d5a1ef768c75d0144d2b 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor.h
+++ b/chrome/browser/predictors/resource_prefetch_predictor.h
@@ -264,6 +264,16 @@ class ResourcePrefetchPredictor
size_t max_data_map_size,
PrefetchDataMap* data_map);
+ // Reports overall page load time.
+ void ReportPageLoadTimeStats(base::TimeDelta plt) const;
+
+ // Reports page load time for prefetched and not prefetched pages
+ void ReportPageLoadTimePrefetchStats(
+ base::TimeDelta plt,
+ bool prefetched,
+ base::Callback<void(int)> report_network_type_callback,
+ PrefetchKeyType key_type) const;
+
// Reports accuracy by comparing prefetched resources with resources that are
// actually used by the page.
void ReportAccuracyStats(PrefetchKeyType key_type,
« no previous file with comments | « chrome/browser/predictors/resource_prefetch_common.cc ('k') | chrome/browser/predictors/resource_prefetch_predictor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698