Eliminate kMojoChannelToken usage for render processes
Changes RenderProcessHostImpl to connect its IPC Channel
by requesting a nominal IPC::mojom::ChannelBootstrap
interface from its shell::Connection to the render process.
Changes ChildThreadImpl to support binding such requests
by fusing them to its local IPC Channel if the (now deprecated)
kMojoChannelToken was not provided.
BUG=623396
[email protected]
Committed: https://crrev.com/7a7f8f7e6977500d09270ff9d9b3817dda5e5b8a
Review-Url: https://codereview.chromium.org/2201183005
Cr-Original-Commit-Position: refs/heads/master@{#410656}
Cr-Commit-Position: refs/heads/master@{#410699}
diff --git a/ipc/ipc.mojom b/ipc/ipc.mojom
index 2896fc2..292a53b 100644
--- a/ipc/ipc.mojom
+++ b/ipc/ipc.mojom
@@ -32,3 +32,6 @@
// Requests a Channel-associated interface.
GetAssociatedInterface(string name, associated GenericInterface& request);
};
+
+// A strictly nominal interface used to identify Channel bootstrap requests.
+interface ChannelBootstrap {};