Earlier today bug 1754037
<https://bugzilla.mozilla.org/show_bug.cgi?id=1754037> was pushed to
autoland. This patch makes some changes to how custom ParamTraits
serializations are implemented in gecko.
Two new types, IPC::MessageWriter and IPC::MessageReader, have been added
which replace the IPC::Message* parameter for Write methods, and both the
const IPC::Message* and PickleIterator* parameters for Read methods. They
should expose largely the same interface as IPC::Message for serialization.
In addition to the usual reading & writing methods, these types also
optionally expose the actor the message is being serialized for using the
`GetActor()` method. This new method should be preferred over using
IPDLParamTraits and its' IProtocol* argument for new serializers.
Due to that change, the IPDLParamTraits trait has been deprecated. All
serialization use-cases should now be supported using IPC::ParamTraits and
IPC::{Read,Write}Param. The type will continue to exist until the remaining
consumers are migrated to IPC::ParamTraits.
If you have any questions about the changes, please reach out in #ipc:
mozilla.org on matrix.
-nika
--
You received this message because you are subscribed to the Google Groups
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CACwGqKgDnFTSxcBgK_gR%3DUb%3DKir28Qb-b4HLkZ8uRWao-_-V2A%40mail.gmail.com.