Reporting: Separately observe reports and clients in ReportingObserver
The ReportingCache stores unsent and pending reports, as well as client configurations. Previously, observers were notified upon any change to any of the cached data. This change differentiates changes to the cached reports from changes to the cached clients, and notifies observers appropriately. This will make it easier to add a ReportingStore class which will observe the ReportingCache and persist the changed data to disk. Also renames what was originally ReportingObserver to ReportingCacheObserver to avoid confusion with the JavaScript ReportingObserver interface (https://w3c.github.io/reporting/#interface-reporting-observer). Bug: none Change-Id: I4afd530b703f04da0bcc53e8ad2d615cb4ed0238 Reviewed-on: https://chromium-review.googlesource.com/c/1362191Reviewed-by:Misha Efimov <mef@chromium.org> Commit-Queue: Lily Chen <chlily@chromium.org> Cr-Commit-Position: refs/heads/master@{#614799}
Showing
Please register or sign in to comment