Log NavigationPredictor metrics when links enter the viewport.
NavigationPredictorAnchorElementMetrics will now be logged only for
links that enter the viewport. Links that are inserted after onload
will also be reported.Only a fraction (1% by default) of links entering
the viewport are reported.
Aggregate statistic on all links on the page
(NavigationPredictorPageLinkMetrics) will now be reported for all
links on the page (regardless of whether then enter the viewport),
including links inserted after onload.
Also remove obsolete Prefetching code in NavigationPredictor.
Now that we have Speculation Rules, prefetching code should be distinct
from link click prediction. Also we already have prefetching logic for
the prefetch proxy in chrome/browser/prefetch/prefetch_proxy. Despite
the name, most of that code is not proxy specific. If we want to
reintroduce non-proxied prefetching, that code can likely be
Bug: 1157161, 1199367
Commit-Queue: Simon Pelchat <email@example.com>
Reviewed-by: Kinuko Yasuda <firstname.lastname@example.org>
Reviewed-by: Tarun Bansal <email@example.com>
Reviewed-by: Robert Kaplow <firstname.lastname@example.org>
Reviewed-by: Ryan Sturm <email@example.com>
3 files changed