diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-07 00:23:14 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-07 00:23:14 +0000 |
commit | 84bbb2b55d8ae1a517b16cb358803ccf1de745c1 (patch) | |
tree | eafc3dcb3da2d3342b26125bf660cb3144f213f9 /chrome/browser/renderer_host/site_instance.h | |
parent | 4814b51fe8210920ec1ebdde20c8deb9e65a1ff9 (diff) | |
download | chromium_src-84bbb2b55d8ae1a517b16cb358803ccf1de745c1.zip chromium_src-84bbb2b55d8ae1a517b16cb358803ccf1de745c1.tar.gz chromium_src-84bbb2b55d8ae1a517b16cb358803ccf1de745c1.tar.bz2 |
Eighth patch in making destructors of refcounted objects private.
BUG=26749
Review URL: http://codereview.chromium.org/378004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31339 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/site_instance.h')
-rw-r--r-- | chrome/browser/renderer_host/site_instance.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/renderer_host/site_instance.h b/chrome/browser/renderer_host/site_instance.h index d8b7672..f68789e 100644 --- a/chrome/browser/renderer_host/site_instance.h +++ b/chrome/browser/renderer_host/site_instance.h @@ -48,9 +48,6 @@ class BrowsingInstance; class SiteInstance : public base::RefCounted<SiteInstance>, public NotificationObserver { public: - // Virtual to allow tests to extend it. - virtual ~SiteInstance(); - // Get the BrowsingInstance to which this SiteInstance belongs. BrowsingInstance* browsing_instance() { return browsing_instance_; } @@ -132,8 +129,12 @@ class SiteInstance : public base::RefCounted<SiteInstance>, static bool IsSameWebSite(const GURL& url1, const GURL& url2); protected: + friend class base::RefCounted<SiteInstance>; friend class BrowsingInstance; + // Virtual to allow tests to extend it. + virtual ~SiteInstance(); + // Create a new SiteInstance. Protected to give access to BrowsingInstance // and tests; most callers should use CreateSiteInstance or // GetRelatedSiteInstance instead. |