Add member ownership_passes_to_ipc_ to SharedMemoryHandle on windows.

Prior to attachment brokering, the semantics for SharedMemoryHandle differed
between Windows and other platforms. On other platforms, if a handle is passed
to the IPC stack, there is a flag that indicates whether ownership also passed.
On Windows, there was no flag, and whether ownership was passed, or leaked
(waiting for another process to close it), was entirely context dependent.
Adding this flag to attachment-brokered SharedMemoryHandles on Windows mean that
they now have the same ownership semantics as SharedMemoryHandles on other
platforms.

BUG=580636

Review URL: https://codereview.chromium.org/1643253003

Cr-Commit-Position: refs/heads/master@{#372783}


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