commit | fd907634b5ea956b34bd1672c084089aad2150cd | [log] [tgz] |
---|---|---|
author | Ken Rockot <[email protected]> | Thu Sep 14 04:23:41 2017 |
committer | Commit Bot <[email protected]> | Thu Sep 14 04:23:41 2017 |
tree | a70d815840df1dca1f09e7bc1da6b3fe3e75131e | |
parent | b0ad6af8d420a7b4b53d60350da123d950f23cbf [diff] |
Mojo Bindings: Support handles in native structs Changes [Native] struct serialization to use an IPC::Message instead of a base::Pickle, allowing ParamTraits for [Native]-mapped types to be parameterized over IPC::Message once again. In order to support this, IPC::Message and related attachment support code has been moved into a separate leaf target in //ipc, avoiding circular dependencies with Mojo bindings. Also changes the wire representation of native structs to allow for typed Mojo handle attachments, and wires up native struct serialization to automatically convert between IPC::MessageAttachments and these typed mojom handles. The net result here is that [Native] mojom structs can be mapped to native types whose ParamTraits use message attachments. BUG=762025 Change-Id: Ib058eff2f32e0e7abfff9619da9f142113ad28ed Reviewed-on: https://chromium-review.googlesource.com/650219 Commit-Queue: Ken Rockot <[email protected]> Reviewed-by: John Abd-El-Malek <[email protected]> Reviewed-by: Daniel Cheng <[email protected]> Reviewed-by: Yuzhu Shen <[email protected]> Cr-Commit-Position: refs/heads/master@{#501866}
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 .