| Index: content/browser/browsing_instance.h
|
| diff --git a/content/browser/browsing_instance.h b/content/browser/browsing_instance.h
|
| index 4beb487b9a01a846785609102490334c10ee95a8..9791e48c731035f8ab26dbd0d7583dbdb3006b95 100644
|
| --- a/content/browser/browsing_instance.h
|
| +++ b/content/browser/browsing_instance.h
|
| @@ -54,9 +54,11 @@ class SiteInstanceImpl;
|
| // site_instance_unittest.cc.
|
| //
|
| ///////////////////////////////////////////////////////////////////////////////
|
| -class CONTENT_EXPORT BrowsingInstance
|
| +class CONTENT_EXPORT BrowsingInstance final
|
| : public base::RefCounted<BrowsingInstance> {
|
| protected:
|
| + ~BrowsingInstance();
|
| +
|
| // Create a new BrowsingInstance.
|
| explicit BrowsingInstance(BrowserContext* context);
|
|
|
| @@ -96,14 +98,12 @@ class CONTENT_EXPORT BrowsingInstance
|
| active_contents_count_--;
|
| }
|
|
|
| - friend class SiteInstanceImpl;
|
| -
|
| - friend class base::RefCounted<BrowsingInstance>;
|
| -
|
| - // Virtual to allow tests to extend it.
|
| - virtual ~BrowsingInstance();
|
| -
|
| private:
|
| + friend class base::RefCounted<BrowsingInstance>;
|
| + friend class SiteInstanceImpl;
|
| + FRIEND_TEST_ALL_PREFIXES(SiteInstanceTest, OneSiteInstancePerSite);
|
| + FRIEND_TEST_ALL_PREFIXES(SiteInstanceTest,
|
| + OneSiteInstancePerSiteInBrowserContext);
|
| // Map of site to SiteInstance, to ensure we only have one SiteInstance per
|
| // site.
|
| typedef base::hash_map<std::string, SiteInstanceImpl*> SiteInstanceMap;
|
|
|