This new API should ultimately replace BlobReader and form the basis of BlobURLRequestJob (and its servicified replacement).
API would probably look something like:
interface Blob {
// [...]
ReadAll(handle<data_pipe_producer> pipe) => (BlobReadResult);
Read(uint64 offset, uint64 length, handle<data_pipe_producer> pipe) => (BlobReadResult);
ReadSideData() => (array<uint8> side_data);
};
Exact details TBD, and to figure out as other parts of the system (FileReader, but also internal users such as CacheStorage::Put) are migrated over.
Comment 1 by mek@chromium.org
, Jul 26 2017