service worker: Rewrite WriteToDiskCacheAsync()
Before this CL, WriteToDiskCacheAsync() synchronously returned ServiceWorkerDatabase::ResourceRecord even its internal operations were asynchornously done. This behavior is undesirable because we want to make resource ID assignment async but creating ResourceRecord requires a new ID. This CL make WriteToDiskCacheAsync() return ResourceRecord asynchornously. A subsequent CL will remove |resource_id| argument from the function and assign an ID inside the function. Bug: 1046335 Change-Id: Id44e39db0b5912235c19d31198763036e922cbf5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2029561 Commit-Queue: Kenichi Ishibashi <bashi@chromium.org> Reviewed-by:Makoto Shimazu <shimazu@chromium.org> Cr-Commit-Position: refs/heads/master@{#737998}
Showing
Please register or sign in to comment