Nika Layzell a0a1368599 Bug 1927476 - Part 2: Reduce generated code for IPDL async reply handling, r=ipc-reviewers,mccr8
There was an installer size regression for macOS after the previous
change. I vaguely expect that this was in part caused by moving blocks
of duplicate IPDL serialization/deserialization logic into callback
lambdas, rather than in the larger OnMessageReceived handler function,
potentially leading to less code deduplication.

This patch moves the common parts of the IPDL message deserialization,
for the parts of the message which were serialized by IPDLResolverInner,
into the IPDLAsyncReturnsCallback class.

As a side-effect of this change, things like IPDL message ID validation
and reject case handling has also been moved to generic rather than
generated code.

Differential Revision: https://phabricator.services.mozilla.com/D228099
2024-11-06 18:36:33 +00:00
..