Add WebSocketChannel ApplyBackpressure() and RemoveBackpressure()
Previously flow control was not exposed to clients of blink::WebSocketChannel. Expose it by adding ApplyBackpressure() and RemoveBackpressure() methods. These are called by clients to start and stop the additional of new receiving flow control quota. Because there may still be outstanding receive quota, DidReceive*Message() can be called again even after ApplyBackpressure() is called. Once available receive quota is exhausted the messages will stop until RemoveBackpressure() is called. This feature will be used by the WebSocketStream implementation. See the design doc at https://docs.google.com/document/d/1XuxEshh5VYBYm1qRVKordTamCOsR-uGQBCYFcHXP4L0/edit#heading=h.7nki9mck5t64 Also move some initialisers for simple member variables to the header in WebSocketChannelImpl. BUG=983030 Change-Id: If3423f43adf7b7225d0d89eda2a94ce2cef4cb4f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1718966 Commit-Queue: Adam Rice <ricea@chromium.org> Reviewed-by:Yutaka Hirano <yhirano@chromium.org> Reviewed-by:
Yoichi Osato <yoichio@chromium.org> Cr-Commit-Position: refs/heads/master@{#682248}
Showing
Please register or sign in to comment