Lines Matching defs:SiteInstance

18 // SiteInstance interface.
20 // A SiteInstance represents a group of web pages that may be able to
40 // navigates within a site, the same SiteInstance is used.
42 // stay in the same SiteInstance, to preserve compatibility in cases like
55 // Each NavigationEntry for a WebContents points to the SiteInstance that
56 // rendered it. Each RenderViewHost also points to the SiteInstance that it is
57 // associated with. A SiteInstance keeps track of the number of these
59 // a SiteInstance is only live as long as it is accessible, either from new
63 class CONTENT_EXPORT SiteInstance : public base::RefCounted<SiteInstance> {
65 // Returns a unique ID for this SiteInstance.
68 // Whether this SiteInstance has a running process associated with it.
74 // SiteInstance. If there is no RenderProcessHost (because either none has
85 // Browser context to which this SiteInstance (and all related
89 // Get the web site that this SiteInstance is rendering pages for.
93 // Gets a SiteInstance for the given URL that shares the current
94 // BrowsingInstance, creating a new SiteInstance if necessary. This ensures
95 // that a BrowsingInstance only has one SiteInstance per site, so that pages
97 // should ensure that this SiteInstance becomes ref counted, by storing it in
102 virtual SiteInstance* GetRelatedSiteInstance(const GURL& url) = 0;
104 // Returns whether the given SiteInstance is in the same BrowsingInstance as
107 virtual bool IsRelatedSiteInstance(const SiteInstance* instance) = 0;
109 // Returns the total active WebContents count for this SiteInstance and all
113 // Factory method to create a new SiteInstance. This will create a new
116 // this SiteInstance becomes ref counted, by storing it in a scoped_refptr.
118 // The render process host factory may be NULL. See SiteInstance constructor.
122 static SiteInstance* Create(content::BrowserContext* browser_context);
124 // Factory method to get the appropriate SiteInstance for the given URL, in
128 static SiteInstance* CreateForURL(
149 friend class base::RefCounted<SiteInstance>;
151 SiteInstance() {}
152 virtual ~SiteInstance() {}