Introduce ResponseBodyLoader::DrainAsBytesConsumer
... in order to drain a BytesConsumer, and use it for Fetch API in the future. As the BytesConsumer passed to ResponseBodyLoader can be exposed, we need to create ResourceLoader::CancelReportingBytesConsumer, a BytesConsumer that translates a cancelling request to the ResourceLoader. Bug: 894819 Change-Id: I1700635dbb9bed6f2b34a80ed2b4c8532733e4c4 Reviewed-on: https://chromium-review.googlesource.com/c/1442431Reviewed-by:Makoto Shimazu <shimazu@chromium.org> Commit-Queue: Yutaka Hirano <yhirano@chromium.org> Cr-Commit-Position: refs/heads/master@{#629112}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment