Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Unified Diff: net/http/http_auth_handler.h

Issue 368001: Second patch in making destructors of refcounted objects private. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/http/http_auth_handler.h
===================================================================
--- net/http/http_auth_handler.h (revision 31079)
+++ net/http/http_auth_handler.h (working copy)
@@ -21,8 +21,6 @@
// HttpAuth::CreateAuthHandler().
class HttpAuthHandler : public base::RefCounted<HttpAuthHandler> {
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 @@
IS_CONNECTION_BASED = 1 << 1,
};
+ friend class base::RefCounted<HttpAuthHandler>;
+
+ virtual ~HttpAuthHandler() { }
+
// Initialize the handler by parsing a challenge string.
// Implementations are expcted to initialize the following members:
// scheme_, realm_, score_, properties_

Powered by Google App Engine
This is Rietveld 408576698