| Index: content/browser/site_instance_impl.h
|
| diff --git a/content/browser/site_instance_impl.h b/content/browser/site_instance_impl.h
|
| index edaeb3e702d75910effe7b4064ba20a3396ad84e..9e6c47d2e1b00e95953238a93960833efa903220 100644
|
| --- a/content/browser/site_instance_impl.h
|
| +++ b/content/browser/site_instance_impl.h
|
| @@ -12,6 +12,7 @@
|
| #include "url/gurl.h"
|
|
|
| namespace content {
|
| +class BrowsingInstance;
|
| class RenderProcessHostFactory;
|
|
|
| class CONTENT_EXPORT SiteInstanceImpl : public SiteInstance,
|
| @@ -21,10 +22,11 @@ class CONTENT_EXPORT SiteInstanceImpl : public SiteInstance,
|
| virtual int32 GetId() OVERRIDE;
|
| virtual bool HasProcess() const OVERRIDE;
|
| virtual RenderProcessHost* GetProcess() OVERRIDE;
|
| + virtual BrowserContext* GetBrowserContext() const OVERRIDE;
|
| virtual const GURL& GetSiteURL() const OVERRIDE;
|
| virtual SiteInstance* GetRelatedSiteInstance(const GURL& url) OVERRIDE;
|
| virtual bool IsRelatedSiteInstance(const SiteInstance* instance) OVERRIDE;
|
| - virtual BrowserContext* GetBrowserContext() const OVERRIDE;
|
| + virtual size_t GetRelatedActiveContentsCount() const OVERRIDE;
|
|
|
| // Set the web site that this SiteInstance is rendering pages for.
|
| // This includes the scheme and registered domain, but not the port. If the
|
| @@ -59,6 +61,14 @@ class CONTENT_EXPORT SiteInstanceImpl : public SiteInstance,
|
| // discarded to save memory.
|
| size_t active_view_count() { return active_view_count_; }
|
|
|
| + // Increase the number of active WebContentses using this SiteInstance. Note
|
| + // that, unlike active_view_count, this does not count pending RVHs.
|
| + void IncrementRelatedActiveContentsCount();
|
| +
|
| + // Decrease the number of active WebContentses using this SiteInstance. Note
|
| + // that, unlike active_view_count, this does not count pending RVHs.
|
| + void DecrementRelatedActiveContentsCount();
|
| +
|
| // Sets the global factory used to create new RenderProcessHosts. It may be
|
| // NULL, in which case the default BrowserRenderProcessHost will be created
|
| // (this is the behavior if you don't call this function). The factory must
|
|
|