Reporting: Observe network changes and clear reports/clients

Desktop / Chromium - juliatuttle [chromium.org] - 20 April 2017 16:30 EDT

Reporting is a spec for delivering out-of-band reports from various other parts of the browser. See http://wicg.github.io/reporting/ for the spec, or https://goo.gl/pygX5I for details of the planned implementation in Chromium.

This CL adds a ReportingNetworkChangeObserver that can clear reports and/or clients (as configured in ReportingPolicy) on network changes.

BUG=704259

Review-Url: https://codereview.chromium.org/2813103005 Cr-Commit-Position: refs/heads/master@{#466113}

164e4cd Reporting: Observe network changes and clear reports/clients
net/BUILD.gn | 3 +
net/reporting/reporting_context.cc | 4 +-
net/reporting/reporting_context.h | 4 +
net/reporting/reporting_network_change_observer.cc | 63 ++++++++++
net/reporting/reporting_network_change_observer.h | 29 +++++
.../reporting_network_change_observer_unittest.cc | 140 +++++++++++++++++++++
net/reporting/reporting_policy.cc | 9 +-
net/reporting/reporting_policy.h | 8 ++
8 files changed, 257 insertions(+), 3 deletions(-)

Upstream: git.chromium.org


  • Share