| Index: content/public/browser/browser_child_process_host.h
|
| diff --git a/content/public/browser/browser_child_process_host.h b/content/public/browser/browser_child_process_host.h
|
| index 1ef3e48752e421ad3922b630cd37b1386e614ca4..60334a9afa2c4499f1e5c3342c875c032d42dc6a 100644
|
| --- a/content/public/browser/browser_child_process_host.h
|
| +++ b/content/public/browser/browser_child_process_host.h
|
| @@ -45,13 +45,13 @@
|
| content::ProcessType process_type,
|
| BrowserChildProcessHostDelegate* delegate);
|
|
|
| - // Used to create a child process host, connecting the process to the shell
|
| - // as a new service instance identified by |service_name| and (optional)
|
| - // |instance_id|.
|
| + // Used to create a child process host, with a unique token to identify the
|
| + // child process to Mojo. |mojo_child_token| should be a unique string
|
| + // generated using mojo::edk::GenerateRandomToken().
|
| static BrowserChildProcessHost* Create(
|
| content::ProcessType process_type,
|
| BrowserChildProcessHostDelegate* delegate,
|
| - const std::string& service_name);
|
| + const std::string& mojo_child_token);
|
|
|
| // Returns the child process host with unique id |child_process_id|, or
|
| // nullptr if it doesn't exist. |child_process_id| is NOT the process ID, but
|
| @@ -92,6 +92,10 @@
|
| // this object.
|
| virtual void SetHandle(base::ProcessHandle handle) = 0;
|
|
|
| + // Returns the shell::InterfaceProvider the browser process can use to bind
|
| + // interfaces exposed to it from the child.
|
| + virtual shell::InterfaceProvider* GetRemoteInterfaces() = 0;
|
| +
|
| #if defined(OS_MACOSX)
|
| // Returns a PortProvider used to get the task port for child processes.
|
| static base::PortProvider* GetPortProvider();
|
|
|