This directory contains the Blink implementation of the WHATWG Streams standard: https://streams.spec.whatwg.org/. There is also a legacy streams implementation.

V8 Extras ReadableStream Implementation

  • ByteLengthQueuingStrategy.js
  • CountQueuingStrategy.js
  • ReadableStream.js
  • ReadableStreamExperimentalPipeTo.js
  • ReadableStreamController.h
  • ReadableStreamOperations.{cpp,h}
  • UnderlyingSourceBase.{cpp,h,idl}
  • WritableStream.js

These files implement ReadableStream using V8 extras. All new code should use this implementation.

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.