[Native]-mapped structs map to C++ types with appropriate IPC::ParamTraits specializations. Currently this arrangement requires the traits to accept a base::Pickle, and any message attachments provided by traits are ignored. This effectively means that such structs cannot carry any kind of handles, Mojo or otherwise.
We should change the wire representation of native structs to include support for Mojo handles and update the native struct serialization logic to convert between legacy IPC MessageAttachment and Mojo handles.
The motivation here is to support at least one complex use case in resource loading.
Comment 1 by bugdroid1@chromium.org
, Sep 14 2017