commit | 1b524d48b132c4fa6b1d858c886010c8182d0e6b | [log] [tgz] |
---|---|---|
author | Robert Sesek <rsesek@chromium.org> | Mon Mar 11 22:31:07 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Mar 11 22:31:07 2019 |
tree | 94dca5473f59f8c0186478dd853e3f17c84c586c | |
parent | f2096d77f9b0762eae369337479af5831ad3fc73 [diff] |
Refactor mojo::Channel to support record-oriented implementations. mojo::Channel is geared towards implementations that use stream-based communication, so it provides an underlying buffer into which bytes can be read, and then a way to notify it that a read is complete. With an upcoming ChannelMac implementation, the underlying communication primitive is record-oriented instead of stream-oriented, which makes using Channel's buffer implementation difficult. This change makes the buffer management optional, and it provides a new method to parse and dispatch messages with an un-owned span of a buffer. Bug: 932175 Change-Id: Ie02412d3cd5c2a2cf21151ac8e0fc5dd4b6d32c7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1512393 Commit-Queue: Robert Sesek <rsesek@chromium.org> Reviewed-by: Ken Rockot <rockot@google.com> Cr-Commit-Position: refs/heads/master@{#639676}
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 .