Fetch: Make blob() stream data directly to BlobRegistry.
This CL refactors the FetchDataLoader to use a mojo::DataPipe to stream data directly to the BlobRegistry when loading to a blob. Previously it would accumulate the entire data set in memory before creating the blob which would then send it down to the registry. Streaming the data is more memory efficient for very large blobs. For example, with this CL we will be able to stream data directly from a network response to a file managed by the BlobRegistry. Bug: 1127008 Change-Id: I9748690028ac67948b49a98f2e721c4ac4c88c19 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2404562 Commit-Queue: Ben Kelly <wanderview@chromium.org> Reviewed-by:Marijn Kruisselbrink <mek@chromium.org> Reviewed-by:
Yutaka Hirano <yhirano@chromium.org> Cr-Commit-Position: refs/heads/master@{#807998}
Showing
Please register or sign in to comment