Chromium Code Reviews| 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 d1369a455b01efce5497db8565aad2069ef2bef1..9b5899a029127690f4516f7055e212a642dc87e3 100644 |
| --- a/content/public/browser/browser_child_process_host.h |
| +++ b/content/public/browser/browser_child_process_host.h |
| @@ -25,6 +25,7 @@ namespace content { |
| class BrowserChildProcessHostDelegate; |
| class ChildProcessHost; |
| class SandboxedProcessLauncherDelegate; |
| +class ServiceRegistry; |
| struct ChildProcessData; |
| // This represents child processes of the browser process, i.e. plugins. They |
| @@ -38,6 +39,10 @@ class CONTENT_EXPORT BrowserChildProcessHost : public IPC::Sender { |
| content::ProcessType process_type, |
| BrowserChildProcessHostDelegate* delegate); |
| + // Returns the child process host with unique id |id|, or nullptr if it |
| + // doesn't exist. |
| + static BrowserChildProcessHost* Get(int id); |
|
ncarter (slow)
2015/05/07 20:12:44
Name this FromID to match the convention establish
Anand Mistry (off Chromium)
2015/05/11 05:41:31
Done. Also clarified the comment to indicate what
|
| + |
| ~BrowserChildProcessHost() override {} |
| // Derived classes call this to launch the child process asynchronously. |
| @@ -72,6 +77,10 @@ class CONTENT_EXPORT BrowserChildProcessHost : public IPC::Sender { |
| // this object. |
| virtual void SetHandle(base::ProcessHandle handle) = 0; |
| + // Get the Mojo service registry connected to the child process. Returns |
| + // nullptr if no service registry exists. |
| + virtual ServiceRegistry* GetServiceRegistry() = 0; |
| + |
| #if defined(OS_MACOSX) && !defined(OS_IOS) |
| // Returns a PortProvider used to get process metrics for child processes. |
| static base::ProcessMetrics::PortProvider* GetPortProvider(); |