commit | 02cd1bd79fbae7ec1250d03828638ed4785b3b3d | [log] [tgz] |
---|---|---|
author | Adam Rice <ricea@chromium.org> | Mon Mar 18 10:22:30 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Mar 18 10:22:30 2019 |
tree | e26213357e36e784cf3eff083fc10ee2779ce73c | |
parent | 02737b4c500ae79999ddfcab65d82f6c2affd5c0 [diff] |
Add WritableStreamNative methods for use by PipeTo Add WritableStreamDefaultWriter::GetDesiredSizeInternal() method which returns the same information as GetDesiredSize() but without creating any JavaScript objects. Instead it returns a base::nullopt to indicate that the stream is errored. Also add accessor OwnerWritableStream() to WritableStreamDefaultWriter and accessors IsErrored() and IsWritable() to WritableStreamNative. Also fix a minor bug in the WritableStreamNative constructor (it didn't return after throwing an exception). BUG=902633 Change-Id: I5762b17b80eccf2139e9aff209733d9358692f7e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1524742 Reviewed-by: Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Adam Rice <ricea@chromium.org> Cr-Commit-Position: refs/heads/master@{#641548}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .