Use mojofied resource reader in ServiceWorkerCacheWriter
This CL starts to use storage::mojom::ServiceWorkerResourceReader in ServiceWorkerCacheWriter. Previously we used ServiceWorkerResponseReader, whose interface is to pass an IO buffer and get the response asynchronously. However, the new interface is using Mojo's data pipe to read the body, whose interface is to ask to read and get the buffer. DataPipeReader is introduced as a convenient class to encapsulate the difference. Bug: 1055677 Change-Id: I1c077143fd155098fb997ddb3b44417f07dfbbda Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2195944 Commit-Queue: Makoto Shimazu <shimazu@chromium.org> Reviewed-by:Matt Falkenhagen <falken@chromium.org> Reviewed-by:
Kenichi Ishibashi <bashi@chromium.org> Cr-Commit-Position: refs/heads/master@{#779206}
Showing
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment