From 5389bc7ba5360633af04b9cf15497d56ce640ead Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Thu, 5 Nov 2009 23:34:24 +0000 Subject: Second patch in making destructors of refcounted objects private. BUG=26749 Review URL: http://codereview.chromium.org/368001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31165 0039d316-1c4b-4281-b951-d872f2087c98 --- net/http/http_auth_handler.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'net/http/http_auth_handler.h') diff --git a/net/http/http_auth_handler.h b/net/http/http_auth_handler.h index 1caf1a4..02a410e 100644 --- a/net/http/http_auth_handler.h +++ b/net/http/http_auth_handler.h @@ -21,8 +21,6 @@ class ProxyInfo; // HttpAuth::CreateAuthHandler(). class HttpAuthHandler : public base::RefCounted { public: - virtual ~HttpAuthHandler() { } - // Initialize the handler by parsing a challenge string. bool InitFromChallenge(std::string::const_iterator begin, std::string::const_iterator end, @@ -86,6 +84,10 @@ class HttpAuthHandler : public base::RefCounted { IS_CONNECTION_BASED = 1 << 1, }; + friend class base::RefCounted; + + virtual ~HttpAuthHandler() { } + // Initialize the handler by parsing a challenge string. // Implementations are expcted to initialize the following members: // scheme_, realm_, score_, properties_ -- cgit v1.1