From 36c8e5f7523eb31c11fce92246cdaca4e7af4f36 Mon Sep 17 00:00:00 2001 From: "cbentzel@chromium.org" Date: Mon, 7 Jun 2010 14:17:14 +0000 Subject: 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 --- net/http/http_auth_handler_factory.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'net/http/http_auth_handler_factory.cc') diff --git a/net/http/http_auth_handler_factory.cc b/net/http/http_auth_handler_factory.cc index e6d697f..c2d011b 100644 --- a/net/http/http_auth_handler_factory.cc +++ b/net/http/http_auth_handler_factory.cc @@ -20,7 +20,7 @@ int HttpAuthHandlerFactory::CreateAuthHandlerFromString( HttpAuth::Target target, const GURL& origin, const BoundNetLog& net_log, - scoped_refptr* handler) { + scoped_ptr* handler) { HttpAuth::ChallengeTokenizer props(challenge.begin(), challenge.end()); return CreateAuthHandler(&props, target, origin, CREATE_CHALLENGE, 1, net_log, handler); @@ -32,7 +32,7 @@ int HttpAuthHandlerFactory::CreatePreemptiveAuthHandlerFromString( const GURL& origin, int digest_nonce_count, const BoundNetLog& net_log, - scoped_refptr* handler) { + scoped_ptr* handler) { HttpAuth::ChallengeTokenizer props(challenge.begin(), challenge.end()); return CreateAuthHandler(&props, target, origin, CREATE_PREEMPTIVE, digest_nonce_count, net_log, handler); @@ -90,15 +90,15 @@ int HttpAuthHandlerRegistryFactory::CreateAuthHandler( CreateReason reason, int digest_nonce_count, const BoundNetLog& net_log, - scoped_refptr* handler) { + scoped_ptr* handler) { if (!challenge->valid()) { - *handler = NULL; + handler->reset(); return ERR_INVALID_RESPONSE; } std::string lower_scheme = StringToLowerASCII(challenge->scheme()); FactoryMap::iterator it = factory_map_.find(lower_scheme); if (it == factory_map_.end()) { - *handler = NULL; + handler->reset(); return ERR_UNSUPPORTED_AUTH_SCHEME; } DCHECK(it->second); -- cgit v1.1