Mojo C++ Bindings: Shave off some more code size

Makes all SerializationContext state private and adds out-of-line
helper methods to manipulate it.

Also adds a base AssociatedInterfacePtrState class to force shared
code across template instantiations for a minor enhancement.

Overall decrease of Android binary size is ~60 kB.

BUG=737372

Change-Id: I17f26bef075faad70357cf90239e0960935553b0
Reviewed-on: https://chromium-review.googlesource.com/553429
Commit-Queue: Ken Rockot <rockot@chromium.org>
Reviewed-by: Yuzhu Shen <yzshen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#483544}

CrOS-Libchrome-Original-Commit: 916a4ce665a069b167196957b1d38af1251f59a8
14 files changed
tree: b98ddf8dde1723bea4859e8979074b099f5e66a6
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/