tree: a281b80402389db489b79b328fca7dd00b5cea5f [path history] [tgz]
  1. ByteLengthQueuingStrategy.js
  2. CountQueuingStrategy.js
  3. OWNERS
  4. README.md
  5. ReadableByteStream.cpp
  6. ReadableByteStream.h
  7. ReadableByteStream.idl
  8. ReadableByteStreamReader.h
  9. ReadableByteStreamReader.idl
  10. ReadableStream.cpp
  11. ReadableStream.h
  12. ReadableStream.js
  13. ReadableStreamController.h
  14. ReadableStreamImpl.h
  15. ReadableStreamOperations.cpp
  16. ReadableStreamOperations.h
  17. ReadableStreamOperationsTest.cpp
  18. ReadableStreamReader.cpp
  19. ReadableStreamReader.h
  20. ReadableStreamReader.idl
  21. ReadableStreamReaderTest.cpp
  22. ReadableStreamTest.cpp
  23. Stream.cpp
  24. Stream.h
  25. Stream.idl
  26. UnderlyingSource.h
  27. UnderlyingSourceBase.cpp
  28. UnderlyingSourceBase.h
  29. UnderlyingSourceBase.idl
third_party/WebKit/Source/core/streams/README.md

This directory contains files from several different implementations and implementation strategies:

Traditional ReadableStream Implementation

  • ReadableByteStream.{cpp,h,idl}
  • ReadableByteStreamReader.{h,idl}
  • ReadableStream.{cpp,h,idl}
  • ReadableStreamImpl.h
  • ReadableStreamReader.{cpp,h,idl}
  • ReadableStreamReaderTest.cpp
  • ReadableStreamTest.cpp
  • UnderlyingSource.h

These files implement the current streams spec, plus the more speculative ReadableByteStream, to the extent necessary to support Fetch response bodies. They do not support author-constructed readable streams. They use the normal approach for implementing web-exposed classes, i.e. IDL bindings with C++ implementation. They are now deprecated and will be removed shortly. See https://crbug.com/613435.

V8 Extras ReadableStream Implementation

  • ByteLengthQueuingStrategy.js
  • CountQueuingStrategy.js
  • ReadableStream.js
  • ReadableStreamController.h
  • UnderlyingSourceBase.{cpp,h,idl}
  • bindings/core/v8/ReadableStreamOperations.{cpp,h}

These files implement V8 extras based ReadableStream which is currently used.

Old streams

  • Stream.{cpp,h,idl}

These files support an old streams spec. They should eventually be removed, but right now XMLHttpRequest and Media Streams Extension code in Blink still depends on them.