Add a size parameter to SharedMemoryHandle.

This is needed to construct a Mojo shared buffer from a SharedMemoryHandle,
which in turn is needed to pass GUIDs through Mojo. Previously, classes like
gfx::GpuMemoryBufferHandle were being serialized as a file descriptor or Windows
HANDLE, rather than a SharedMemoryHandle because they did not have access to a
size field.

BUG=713763
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win10_chromium_x64_rel_ng

Review-Url: https://codereview.chromium.org/2875453002
Cr-Commit-Position: refs/heads/master@{#472865}


CrOS-Libchrome-Original-Commit: 9d6afd71a4937e9f400609f839c2b39b22c4c497
13 files changed
tree: 56d83e8c3ce0c49233cd8efe6e0d049add33ac8c
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/