Quota: Implement quotachange event and corresponding dispatcher.
This change implements the subscribe mechanism for the QuotaChange event. Listeners are plumbed through to a new class, QuotaChangeDispatcher, which is owned by QuotaContext. Events are dispatched with a randomized delay; by adding noise, we can prevent bad actors from using this event as a signal to correlate users across profiles/origins or to identify the size of cross-origin resources. Listeners are organized by origin, so that all events for a single origin will be dispatched with the same randomized delay. Bug: 1088004 Change-Id: Ie2513f127eeedf9422f5bb463f2dd515dfa90bea Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2270667 Commit-Queue: Lexi Stavrakos <astavrakos@google.com> Reviewed-by:Jarryd Goodman <jarrydg@chromium.org> Reviewed-by:
Matthew Denton <mpdenton@chromium.org> Reviewed-by:
Darwin Huang <huangdarwin@chromium.org> Reviewed-by:
Victor Costan <pwnall@chromium.org> Cr-Commit-Position: refs/heads/master@{#797849}
Showing
Please register or sign in to comment