Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1899)

Unified Diff: content/browser/mojo/mojo_shell_client_host.h

Issue 1685183004: Bootstrap Mojo IPC independent of Chrome IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: and fix posix Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/mojo/mojo_shell_client_host.h
diff --git a/content/browser/mojo/mojo_shell_client_host.h b/content/browser/mojo/mojo_shell_client_host.h
index 8b945fa7a3d403af8c800f214ef895f6691466fd..d9638a2c3c71af5c76e3733ac8197f882ab84475 100644
--- a/content/browser/mojo/mojo_shell_client_host.h
+++ b/content/browser/mojo/mojo_shell_client_host.h
@@ -18,8 +18,14 @@ class RenderProcessHost;
// child. The server handle of this channel is shared with the external shell
// via Mojo IPC. |child_process_id| is used to uniquify the child in the
// external shell's instance map.
-void RegisterChildWithExternalShell(int child_process_id,
- RenderProcessHost* render_process_host);
+//
+// This returns a token that may be passed to the child process and exchanged
+// for a pipe there. That pipe can in turn be passed to
+// MojoShellConnectionImpl::BindToMessagePipe() to initialize the child's
+// shell connection.
+std::string RegisterChildWithExternalShell(
+ int child_process_id,
+ RenderProcessHost* render_process_host);
// Returns the URL associated with an instance corresponding to the renderer
// process in the external shell. This URL can be passed to
@@ -27,10 +33,6 @@ void RegisterChildWithExternalShell(int child_process_id,
std::string GetMojoApplicationInstanceURL(
RenderProcessHost* render_process_host);
-// Shares a client handle to the Mojo Shell with the child via Chrome IPC.
-void SendExternalMojoShellHandleToChild(base::ProcessHandle process_handle,
- RenderProcessHost* render_process_host);
-
// Constructs a Capability Filter for the renderer's application instance in the
// external shell. This contains the restrictions imposed on what applications
// and interfaces the renderer can see. The implementation lives in

Powered by Google App Engine
This is Rietveld 408576698