Improve memory management in ServiceWorkerDiskCache
This is a refactoring CL to avoid raw pointer allocations in ServiceWorkerDiskCache. To remove raw pointers, this CL changes CreateEntry(), OpenEntry(), DoomEntry() from //net-style maybe-async to always-call-callback style. This CL also removes ServiceWorkerDiskCacheEntry::Close() to make its lifetime less surprising. Bug: 1117369, 586174 Change-Id: Ie310446b8b55361c47b778237af1a5f6f5582bf0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2484022 Commit-Queue: Victor Costan <pwnall@chromium.org> Reviewed-by:Victor Costan <pwnall@chromium.org> Cr-Commit-Position: refs/heads/master@{#820856}
Showing
This diff is collapsed.
Please register or sign in to comment