0
Files
src/ipc
Kent Tamura f4476efcef mojo: Avoid #includes in foo.mojom-forward.h
This CL reduces pre-processed size of foo.mojom(-blink)-forward.h
including interfaces or structs significantly. For example,

  file_chooser.mojom-blink-forward.h: 1.66MB => 0.004MB

* mojo/public/cpp/bindings/*_forward.h
  New files.  They contain some forward declarations for
  mojo/public/cpp/bindings/.

* mojo/public/tools/bindings/generators/cpp_templates/module-forward.h.tmpl
  Include only *_forward.h and native_struct.mojom-forward.h.
  native_struct.mojom-forward.h is necessary for [native] structs.

* ipc/message_view.{h,cc}
  Move TakeHandles() implementation to message_view.cc in order to avoid
  instantiation of mojo::StructPtr<> in the header.

* Other files
  Add #includes or forward declarations which were included indirectly
  from mojo headers.


Change-Id: I08ac30fc40cb7af4ce248e8e9b5b1ff4fb55ed68
Bug: 862064
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1768608
Reviewed-by: Ken Rockot <rockot@google.com>
Reviewed-by: Matt Falkenhagen <falken@chromium.org>
Reviewed-by: Mitsuru Oshima <oshima@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#690932}
2019-08-27 23:43:59 +00:00
..
2019-08-02 10:07:50 +00:00