[AdsPageLoadMetrics] Track frames identified as ads by SubresourceFilter

Desktop / Chromium - Josh Karlin [chromium.org] - 14 July 2017 13:37 EDT

Labels frames identified as ads by the SubresourceFilter as ads. Also adds an AdType to each frame tracked by AdsPageLoadMetrics. When it's time to record the metrics, the same logic is applied once to collect stats for each ad type. There is also an additional ad type, "All", which records stats on all of the identified ads, regardless of which detector discovered it.

Bug: 708570 Change-Id: Ic0f1f1cfd7176ffdba459b607735a6aa6b4318ff Reviewed-on: https://chromium-review.googlesource.com/567324

d1fee60 [AdsPageLoadMetrics] Track frames identified as ads by SubresourceFilter
.../observers/ads_page_load_metrics_observer.cc | 178 +++++++++++++++------
.../observers/ads_page_load_metrics_observer.h | 50 +++++-
.../ads_page_load_metrics_observer_unittest.cc | 178 ++++++++++++++-------
tools/metrics/histograms/histograms.xml | 129 +++++++++++----
4 files changed, 396 insertions(+), 139 deletions(-)

Upstream: git.chromium.org


  • Share