Bug
1680208 [wpt PR 26714] - Add support for ReadableStreamBYOBReader & ByteStreamController, a=testonly
Automatic update from web-platform-tests
Add support for ReadableStreamBYOBReader & ByteStreamController
This CL adds the main implementation for supporting BYOB readers
and byte stream controllers for readable streams according to
the Streams API standard[1]. As added in previous CLs, this is
done using polymorphism where there are two base classes:
- ReadableStreamGenericReader, and
- ReadableStreamController
which the default/BYOB readers and default/byte stream controllers
inherit from. This approach is further elaborated upon in detail
in the design document[2].
The three main classes that implementation was added for in
this CL are:
1. ReadableStreamBYOBReader
2. ReadableByteStreamController
3. ReadableStreamBYOBRequest
This CL also includes:
- new GetBYOBReader unittest
- UnderlyingSource WebIDL files [3]
among other things for adding the functionality of supporting
readable byte streams.
[1] https://streams.spec.whatwg.org/
[2] https://docs.google.com/document/d/1rvKpGjppeqRSWntokY-ft_hU2i2us8gis6zgrrLWSTI/view#
[3] https://streams.spec.whatwg.org/#underlying-source-api
Bug: 614302
Change-Id: I380258453e6fd5d617810e21fa8996f8f08b26f1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/
2537281
Commit-Queue: Nidhi Jaju <nidhijaju@google.com>
Reviewed-by: Yutaka Hirano <yhirano@chromium.org>
Reviewed-by: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#833711}
--
wpt-commits:
274af4bd211a011849d035eaeb768d0f447208d9
wpt-pr: 26714