Add C++ wrapper for TransformStream
Design doc https://docs.google.com/document/d/17goe4jacAYjHHtprfVPSrqDvF_J58u2qirz0HQ58sQ4/edit Implement the C++ classes TransformStream and TransformStreamDefaultController. These provide thin wrappers for the equivalent JavaScript classes. Modify the JavaScript TransformStream implementation to pass the |controller| argument to the algorithms. This is a departure from the standard, but the difference is not observable to user code. It makes the memory management considerably simpler as no C++ reference to the TransformStreamDefaultController needs to be retained between calls. Define the interface TransformStreamTransformer. Also create unit tests for these new classes. Bug: 845427 Change-Id: I067a8ff15daaa4912760fbdb9ca4697705f2e3f8 Reviewed-on: https://chromium-review.googlesource.com/1156324Reviewed-by:Yuki Shiino <yukishiino@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Reviewed-by:
Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Adam Rice <ricea@chromium.org> Cr-Commit-Position: refs/heads/master@{#582512}
Showing
This diff is collapsed.
Please register or sign in to comment