• Lily Chen's avatar
    Double-key ReportingDeliveryAgent · 606c9401
    Lily Chen authored
    This CL refactors ReportingDeliveryAgent to take NetworkIsolationKeys
    of reports and endpoints into account.
    
    It sorts the reports so that only reports with the same NIK and origin
    are batched in the same upload. Reports for the same (NIK, origin) but
    different groups can still be in the same upload if they share
    an endpoint URL. Also reports that get assigned to the same endpoint URL
    can be batched together, even if they are assigned to ReportingEndpoints
    configured for different origins.
    
    All the NIK fields are still empty except in tests.
    
    Bug: 993805
    Change-Id: I953f0b1ff38fbe2625c539e6e00306621f1025d1
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2138566
    Commit-Queue: Lily Chen <chlily@chromium.org>
    Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#770206}
    606c9401
reporting_delivery_agent.h 2.26 KB