Lines Matching refs:SiteInstance
17 class SiteInstance;
36 // It is important to only have one SiteInstance per site within a given
41 // A BrowsingInstance is live as long as any SiteInstance has a reference to
42 // it. A SiteInstance is live as long as any NavigationEntry or RenderViewHost
47 // visible only from the SiteInstance class. To get a new
48 // SiteInstance that is part of the same BrowsingInstance, use
49 // SiteInstance::GetRelatedSiteInstance. Because of this,
63 // Returns whether this BrowsingInstance has registered a SiteInstance for
67 // Get the SiteInstance responsible for rendering the given URL. Should
69 // SiteInstance per site.
70 SiteInstance* GetSiteInstanceForURL(const GURL& url);
72 // Adds the given SiteInstance to our map, to ensure that we do not create
73 // another SiteInstance for the same site.
74 void RegisterSiteInstance(SiteInstance* site_instance);
76 // Removes the given SiteInstance from our map, after all references to it
77 // have been deleted. This means it is safe to create a new SiteInstance
80 void UnregisterSiteInstance(SiteInstance* site_instance);
83 friend class SiteInstance;
91 // Map of site to SiteInstance, to ensure we only have one SiteInstance per
92 typedef base::hash_map<std::string, SiteInstance*> SiteInstanceMap;
98 // Map of site to SiteInstance, to ensure we only have one SiteInstance per
101 // contain every active SiteInstance, because a race exists where two