• Kenichi Ishibashi's avatar
    Allow ServiceWorkerDiskCache operations to be overlapped · 9a601cc6
    Kenichi Ishibashi authored
    There seems a situation where multiple operations are queued at a
    time for the same resource id. Since `active_entry_calls_` and
    `active_doom_calls_` used resource id as a key, only one callback was
    preserved. When DidGetEntryResult() or DidDoomEntry() were called for
    the second time, these tried to find active calls from the maps but
    callbacks were already consumed.
    
    This CL replaces keys of `active_entry_calls_` and
    `active_doom_calls_` with monotonically increasing `call_id_` to make
    sure we don't lose the callback of each operation.
    
    Bug: 1142779
    Change-Id: Ie4a999c50bcee3417453da8bbe4b2b529462b91f
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2505338
    Commit-Queue: Kenichi Ishibashi <bashi@chromium.org>
    Reviewed-by: default avatarMakoto Shimazu <shimazu@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#822045}
    9a601cc6
BUILD.gn 106 KB