commit | f1855c7fd77ce70ac1e311cba01237f8fe321868 | [log] [tgz] |
---|---|---|
author | Adam Rice <ricea@chromium.org> | Tue May 26 06:18:25 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Tue May 26 06:18:25 2020 |
tree | 632c57251714578ddc0f0d62cad7fab6cfd3f236 | |
parent | a2543131f3c0eac9c6a5966e0a2784d69f54ae36 [diff] |
[WebSocket] Update renderer to use mojo writable datapipe This commit updates the renderer to use mojo datapipe to transfer WebSocket mesasge to the network service, which later sends out the message with appropriate framing. It adds new ProducePendingData() and ProduceData() functions to write pending messages to the datapipe. It also adds mojo SimpleWatcher and OnWritable callback function in case when the data pipe is unavailable at the moment. This also updates the unittests to stop testing the quota system, and start testing the new datapipe transfer. This commit is a follow-up CL from the following CL: https://chromium-review.googlesource.com/c/chromium/src/+/2071189 Design Doc: https://docs.google.com/document/d/1YWj1z9r8wxemGdod6S2tkchudhp6PvNaH3qSO0oucfY/ This is a rebase of https://chromium-review.googlesource.com/c/chromium/src/+/2089564, originally by Keita Suzuki. Bug: 1056030 Change-Id: Ic57abc92b95dad0765c55945439ced5adaf227b9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2206556 Reviewed-by: Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Adam Rice <ricea@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#771697} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: d009570338948bb11b49210df930924825de95d8