| OLD | NEW |
| 1 This directory contains files from several different implementations and | 1 This directory contains files from several different implementations and |
| 2 implementation strategies: | 2 implementation strategies: |
| 3 | 3 |
| 4 ## Traditional ReadableStream Implementation | 4 ## Traditional ReadableStream Implementation |
| 5 | 5 |
| 6 - ReadableByteStream.{cpp,h,idl} | 6 - ReadableByteStream.{cpp,h,idl} |
| 7 - ReadableByteStreamReader.{h,idl} | 7 - ReadableByteStreamReader.{h,idl} |
| 8 - ReadableStream.{cpp,h,idl} | 8 - ReadableStream.{cpp,h,idl} |
| 9 - ReadableStreamImpl.h | 9 - ReadableStreamImpl.h |
| 10 - ReadableStreamReader.{cpp,h,idl} | 10 - ReadableStreamReader.{cpp,h,idl} |
| 11 - ReadableStreamReaderTest.cpp | 11 - ReadableStreamReaderTest.cpp |
| 12 - ReadableStreamTest.cpp | 12 - ReadableStreamTest.cpp |
| 13 - UnderlyingSource.h | 13 - UnderlyingSource.h |
| 14 | 14 |
| 15 These files implement the current streams spec, plus the more speculative | 15 These files implement the current streams spec, plus the more speculative |
| 16 ReadableByteStream, to the extent necessary to support Fetch response bodies. | 16 ReadableByteStream, to the extent necessary to support Fetch response bodies. |
| 17 They do not support author-constructed readable streams. They use the normal | 17 They do not support author-constructed readable streams. They use the normal |
| 18 approach for implementing web-exposed classes, i.e. IDL bindings with C++ | 18 approach for implementing web-exposed classes, i.e. IDL bindings with C++ |
| 19 implementation. They are currently shipping in Chrome. | 19 implementation. They are now deprecated and will be removed shortly. See |
| 20 https://crbug.com/613435. |
| 20 | 21 |
| 21 ## V8 Extras ReadableStream Implementation | 22 ## V8 Extras ReadableStream Implementation |
| 22 | 23 |
| 23 - ByteLengthQueuingStrategy.js | 24 - ByteLengthQueuingStrategy.js |
| 24 - CountQueuingStrategy.js | 25 - CountQueuingStrategy.js |
| 25 - ReadableStream.js | 26 - ReadableStream.js |
| 26 - ReadableStreamTempStub.js | |
| 27 - ReadableStreamController.h | 27 - ReadableStreamController.h |
| 28 - UnderlyingSourceBase.{cpp,h,idl} | 28 - UnderlyingSourceBase.{cpp,h,idl} |
| 29 - bindings/core/v8/ReadableStreamOperations.{cpp,h} | 29 - bindings/core/v8/ReadableStreamOperations.{cpp,h} |
| 30 | 30 |
| 31 These files are an in-progress implementation of the current streams spec, | 31 These files implement [V8 extras][1] based ReadableStream which is currently |
| 32 using [V8 extras][1]. They allow author construction. We hope eventually to | 32 used. |
| 33 have these supercede the traditional ReadableStream implementation, but the | |
| 34 work to build Fetch response body streams on top of this is ongoing. | |
| 35 | 33 |
| 36 [1]: https://docs.google.com/document/d/1AT5-T0aHGp7Lt29vPWFr2-qG8r3l9CByyvKwEuA
8Ec0 | 34 [1]: https://docs.google.com/document/d/1AT5-T0aHGp7Lt29vPWFr2-qG8r3l9CByyvKwEuA
8Ec0 |
| 37 | 35 |
| 38 ## Old streams | 36 ## Old streams |
| 39 | 37 |
| 40 - Stream.{cpp,h,idl} | 38 - Stream.{cpp,h,idl} |
| 41 | 39 |
| 42 These files support an old streams spec. They should eventually be removed, but | 40 These files support an old streams spec. They should eventually be removed, but |
| 43 right now XMLHttpRequest and Media Streams Extension code in Blink still | 41 right now XMLHttpRequest and Media Streams Extension code in Blink still |
| 44 depends on them. | 42 depends on them. |
| OLD | NEW |