Add a GUID to base::SharedMemoryHandle.

This allows SharedMemoryHandle to be tracked across processes.
SharedMemoryHandles that point to the same region should have the same GUID.
This CL does not finish all of the GUID plumbing. The following still needs to
be done:
  * Passing GUID through Mojo. rockot@ has said that he will do this and TODOs
  have been left for him in the code.
  * Passing GUID for base::FieldTrial, which requires a SharedMemoryHandle
  shortly after proess launch, before IPC is set up.
  * Updating ArcGpuVideoDecodeAccelerator to use mojo ScopedHandles instead of
  fds.
  * Updating serialization of gfx::GpuMemoryBufferHandle to pass through shared
  buffer handles instead of generic handles.

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

Review-Url: https://codereview.chromium.org/2859843002
Cr-Original-Commit-Position: refs/heads/master@{#469877}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 145252018a78e2102e148f238970fd411e10a706
1 file changed
tree: fa9b2ec073e96e64d0eedbfc881f0a0eac2e3bb2
  1. tools/