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

Unified Diff: content/public/browser/site_instance.h

Issue 13533007: Test extension reloading behavior. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months 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
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..eaf1bc784ff32a7d5de256cb525089b28b39ed36 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 set_render_process_host_factory(
Paweł Hajdan Jr. 2013/04/04 21:30:05 If it's virtual, I think it should change from uni
Jeffrey Yasskin 2013/04/05 13:14:01 Done.
+ 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

Powered by Google App Engine
This is Rietveld 408576698