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

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

Issue 1455323002: Use unique URLs rather than qualifiers to uniquify RenderProcesses. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 1 month 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
« no previous file with comments | « no previous file | content/browser/mojo/mojo_shell_client_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3f2b4dadcd9a79dd9d483c905d25123611d25b30..6f61f71e205fd0d9fe599d27c04e5e5aeaa136e5 100644
--- a/content/browser/mojo/mojo_shell_client_host.h
+++ b/content/browser/mojo/mojo_shell_client_host.h
@@ -5,14 +5,14 @@
#ifndef CONTENT_BROWSER_MOJO_MOJO_SHELL_CLIENT_HOST_H_
#define CONTENT_BROWSER_MOJO_MOJO_SHELL_CLIENT_HOST_H_
-#include "base/process/process_handle.h"
+#include <string>
-namespace IPC {
-class Sender;
-}
+#include "base/process/process_handle.h"
namespace content {
+class RenderProcessHost;
+
// Creates a communication channel between the external Mojo shell and the
// child. The server handle of this channel is shared with the external shell
// via Mojo IPC and the client handle is shared with the child via Chrome IPC.
@@ -20,7 +20,13 @@ namespace content {
// instance map.
void RegisterChildWithExternalShell(int child_process_id,
base::ProcessHandle process_handle,
- IPC::Sender* sender);
+ 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
+// ConnectToApplication() to open a new connection to this renderer.
+std::string GetMojoApplicationInstanceURL(
+ RenderProcessHost* render_process_host);
} // namespace content
« no previous file with comments | « no previous file | content/browser/mojo/mojo_shell_client_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698