-
Song Fangzhen authored
Add TCPReadableStreamWrapper and TCPWritableStreamWrapper which provide stream implementations for TCPSocket. TCPReadableWrapper and TCPWritableWrapper watch the mojo datapipe, create underlying queue strategy, and provide functions like read/write data from/to network. Unittests are also provided. Below documents are from Eric Willigers <ericwilligers@chromium.org>. Explainer: https://github.com/WICG/raw-sockets/blob/master/docs/explainer.md Intent to Prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/ARtkaw4e9T4/m/npjeMssPCAAJ Design doc: https://docs.google.com/document/d/1Xa5nFkIWxkL3hZHvDYWPhT8sZvNeFpCUKNuqIwZHxnE/edit?usp=sharing Bug: 905818 Change-Id: I8a0da5d9391c543201e5e9620ca493d192166319 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2563340Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Reviewed-by:
Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Ke He <kehe@chromium.org> Cr-Commit-Position: refs/heads/master@{#836841}
de0b805e