Today when a header is emitted by the C++ bindings generator, it contains #includes for the unified set of public_headers from all typemaps in the bindings configuration. This means a very large number unused headers are included by every mojom source module.
We should be able to deduce the transitive closure of typemap headers needed for any given generated file, and include only those ones.
Comment 1 by roc...@chromium.org
, Oct 3 2016