diff options
author | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-07 14:17:14 +0000 |
---|---|---|
committer | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-07 14:17:14 +0000 |
commit | 36c8e5f7523eb31c11fce92246cdaca4e7af4f36 (patch) | |
tree | 117a4786075700fb0b86b843304964c694adf533 /net/http/http_auth_handler.h | |
parent | 7ec0cb21f022b28c20e6e44e5f38f9ed6bc13a16 (diff) | |
download | chromium_src-36c8e5f7523eb31c11fce92246cdaca4e7af4f36.zip chromium_src-36c8e5f7523eb31c11fce92246cdaca4e7af4f36.tar.gz chromium_src-36c8e5f7523eb31c11fce92246cdaca4e7af4f36.tar.bz2 |
HttpAuthHandler's are no longer refcounted.
Since HttpAuthHandler objects are no longer contained inside of the
HttpAuthCache, the lifetime of the handlers is more clearly defined.
TEST=net_unittests (including some changes)
BUG=42222
Review URL: http://codereview.chromium.org/2635004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49052 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_handler.h')
-rw-r--r-- | net/http/http_auth_handler.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/net/http/http_auth_handler.h b/net/http/http_auth_handler.h index 8c01d41..4aa8852 100644 --- a/net/http/http_auth_handler.h +++ b/net/http/http_auth_handler.h @@ -7,7 +7,6 @@ #include <string> -#include "base/ref_counted.h" #include "net/base/completion_callback.h" #include "net/base/net_log.h" #include "net/http/http_auth.h" @@ -21,8 +20,10 @@ struct HttpRequestInfo; // HttpAuthHandler is the interface for the authentication schemes // (basic, digest, NTLM, Negotiate). // HttpAuthHandler objects are typically created by an HttpAuthHandlerFactory. -class HttpAuthHandler : public base::RefCounted<HttpAuthHandler> { +class HttpAuthHandler { public: + virtual ~HttpAuthHandler() {} + // Initializes the handler using a challenge issued by a server. // |challenge| must be non-NULL and have already tokenized the // authentication scheme, but none of the tokens occuring after the @@ -130,10 +131,6 @@ class HttpAuthHandler : public base::RefCounted<HttpAuthHandler> { IS_CONNECTION_BASED = 1 << 1, }; - friend class base::RefCounted<HttpAuthHandler>; - - virtual ~HttpAuthHandler() { } - // Initializes the handler using a challenge issued by a server. // |challenge| must be non-NULL and have already tokenized the // authentication scheme, but none of the tokens occuring after the |