Chromium Code Reviews| Index: content/browser/renderer_host/render_process_host_impl.h |
| diff --git a/content/browser/renderer_host/render_process_host_impl.h b/content/browser/renderer_host/render_process_host_impl.h |
| index 1e4097edbd1158fbe7d11f75184a552ecef4f72f..6b09b6e13df37e775d1c0fca63097b672bd105dc 100644 |
| --- a/content/browser/renderer_host/render_process_host_impl.h |
| +++ b/content/browser/renderer_host/render_process_host_impl.h |
| @@ -309,6 +309,25 @@ class CONTENT_EXPORT RenderProcessHostImpl |
| static void set_render_process_host_factory( |
| const RenderProcessHostFactory* rph_factory); |
| + // Tracks which sites frames are hosted in which RenderProcessHosts. |
| + static void AddFrameWithSite(BrowserContext* browser_context, |
| + RenderProcessHost* render_process_host, |
| + const GURL& site_url); |
| + static void RemoveFrameWithSite(BrowserContext* browser_context, |
| + RenderProcessHost* render_process_host, |
| + const GURL& site_url); |
| + |
| + // Tracks which sites navigations are expected to commit in which |
| + // RenderProcessHosts. |
| + static void AddExpectedNavigationToSite( |
| + BrowserContext* browser_context, |
| + RenderProcessHost* render_process_host, |
| + const GURL& site_url); |
| + static void RemoveExpectedNavigationToSite( |
| + BrowserContext* browser_context, |
| + RenderProcessHost* render_process_host, |
| + const GURL& site_url); |
| + |
| protected: |
| // A proxy for our IPC::Channel that lives on the IO thread. |
| std::unique_ptr<IPC::ChannelProxy> channel_; |
| @@ -415,6 +434,12 @@ class CONTENT_EXPORT RenderProcessHostImpl |
| SiteInstanceImpl* site_instance, |
| bool is_for_guests_only); |
| + // Returns a RenderProcessHost* that is rendering |site_url| in one of its |
|
Charlie Reis
2017/05/18 00:58:34
nit: No need for the * here.
clamy
2017/05/22 16:59:52
Done.
|
| + // frames, or that is expecting a navigation to |site_url|. |
| + static RenderProcessHost* FindReusableProcessHostForSite( |
| + BrowserContext* browser_context, |
| + const GURL& site_url); |
| + |
| #if BUILDFLAG(ENABLE_WEBRTC) |
| void OnRegisterAecDumpConsumer(int id); |
| void OnUnregisterAecDumpConsumer(int id); |