| Index: content/public/browser/site_instance.h
|
| diff --git a/content/public/browser/site_instance.h b/content/public/browser/site_instance.h
|
| index 0696fdccdfd3c36b147a812e2e5ef344637a3c09..d0ed33dba66ec1f17f5995a7dfcb85004bf04468 100644
|
| --- a/content/public/browser/site_instance.h
|
| +++ b/content/public/browser/site_instance.h
|
| @@ -14,6 +14,7 @@ namespace content {
|
| class BrowserContext;
|
| class BrowsingInstance;
|
| class RenderProcessHost;
|
| +class RenderProcessHostFactory;
|
|
|
| ///////////////////////////////////////////////////////////////////////////////
|
| // SiteInstance interface.
|
| @@ -106,6 +107,14 @@ class CONTENT_EXPORT SiteInstance : public base::RefCounted<SiteInstance> {
|
| // origins (e.g., postMessage) should be supported.
|
| virtual bool IsRelatedSiteInstance(const SiteInstance* instance) = 0;
|
|
|
| + // Sets the factory used to create new RenderProcessHosts. This will also be
|
| + // passed on to SiteInstances spawned by this one.
|
| + // The factory must outlive the SiteInstance; ownership is not transferred. It
|
| + // may be NULL, in which case the default BrowserRenderProcessHost will be
|
| + // created (this is the behavior if you don't call this function).
|
| + virtual void SetRenderProcessHostFactory(
|
| + const RenderProcessHostFactory* rph_factory) = 0;
|
| +
|
| // Factory method to create a new SiteInstance. This will create a new
|
| // new BrowsingInstance, so it should only be used when creating a new tab
|
| // from scratch (or similar circumstances). Callers should ensure that
|
|
|