Mojo EDK: Scoped peer process connections

Encloses the ad hoc ConnectToPeerProcess and ClosePeerConnection APIs
within a new PeerConnection scoper which implicitly controls the
lifetime of the connection.

In addition to being safer, this new API plumbs through ConnectionParams
for peer process connections.

This eliminates the remaining legacy EDK IPC API surface.

BUG=696031
TBR=jam@chromium.org

Change-Id: I1795e0328fd0e8242fb905ab0437dbc2985e6746
Reviewed-on: https://chromium-review.googlesource.com/505714
Commit-Queue: Ken Rockot <rockot@chromium.org>
Reviewed-by: Jay Civelli <jcivelli@chromium.org>
Cr-Commit-Position: refs/heads/master@{#472973}

CrOS-Libchrome-Original-Commit: 47f4e89ec7a4477a18c12595cca6d2aa46231f78
11 files changed
tree: 16444d23144675e9965dd694b32bcb39ce1a410d
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/