summaryrefslogtreecommitdiffstats
path: root/net/http/http_auth_handler_basic.cc
diff options
context:
space:
mode:
authorcbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-07 14:17:14 +0000
committercbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-07 14:17:14 +0000
commit36c8e5f7523eb31c11fce92246cdaca4e7af4f36 (patch)
tree117a4786075700fb0b86b843304964c694adf533 /net/http/http_auth_handler_basic.cc
parent7ec0cb21f022b28c20e6e44e5f38f9ed6bc13a16 (diff)
downloadchromium_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_basic.cc')
-rw-r--r--net/http/http_auth_handler_basic.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/http/http_auth_handler_basic.cc b/net/http/http_auth_handler_basic.cc
index 98bd02a..21bfc44 100644
--- a/net/http/http_auth_handler_basic.cc
+++ b/net/http/http_auth_handler_basic.cc
@@ -80,10 +80,10 @@ int HttpAuthHandlerBasic::Factory::CreateAuthHandler(
CreateReason reason,
int digest_nonce_count,
const BoundNetLog& net_log,
- scoped_refptr<HttpAuthHandler>* handler) {
+ scoped_ptr<HttpAuthHandler>* handler) {
// TODO(cbentzel): Move towards model of parsing in the factory
// method and only constructing when valid.
- scoped_refptr<HttpAuthHandler> tmp_handler(new HttpAuthHandlerBasic());
+ scoped_ptr<HttpAuthHandler> tmp_handler(new HttpAuthHandlerBasic());
if (!tmp_handler->InitFromChallenge(challenge, target, origin, net_log))
return ERR_INVALID_RESPONSE;
handler->swap(tmp_handler);