summaryrefslogtreecommitdiffstats
path: root/net/http/http_auth_handler_factory.cc
diff options
context:
space:
mode:
authorcbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-27 15:07:38 +0000
committercbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-27 15:07:38 +0000
commitac5c06ec27c40539d4b8c3892def9400af2e3852 (patch)
tree28510fded7167f6d83dbd620c39ec62ee70a01bc /net/http/http_auth_handler_factory.cc
parent1dc475f2470ea831f31e8d553eea0e4e3d1216cb (diff)
downloadchromium_src-ac5c06ec27c40539d4b8c3892def9400af2e3852.zip
chromium_src-ac5c06ec27c40539d4b8c3892def9400af2e3852.tar.gz
chromium_src-ac5c06ec27c40539d4b8c3892def9400af2e3852.tar.bz2
HttpAuthHandlers hold onto a bound net log.
Although this doesn't have a behavioral impact in this CL, it is needed for additional logging which I'd like to add. BUG=34737 TEST=net_unittests Review URL: http://codereview.chromium.org/2288001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48391 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_handler_factory.cc')
-rw-r--r--net/http/http_auth_handler_factory.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/net/http/http_auth_handler_factory.cc b/net/http/http_auth_handler_factory.cc
index 7bb241f..e6d697f 100644
--- a/net/http/http_auth_handler_factory.cc
+++ b/net/http/http_auth_handler_factory.cc
@@ -19,10 +19,11 @@ int HttpAuthHandlerFactory::CreateAuthHandlerFromString(
const std::string& challenge,
HttpAuth::Target target,
const GURL& origin,
+ const BoundNetLog& net_log,
scoped_refptr<HttpAuthHandler>* handler) {
HttpAuth::ChallengeTokenizer props(challenge.begin(), challenge.end());
return CreateAuthHandler(&props, target, origin, CREATE_CHALLENGE, 1,
- handler);
+ net_log, handler);
}
int HttpAuthHandlerFactory::CreatePreemptiveAuthHandlerFromString(
@@ -30,10 +31,11 @@ int HttpAuthHandlerFactory::CreatePreemptiveAuthHandlerFromString(
HttpAuth::Target target,
const GURL& origin,
int digest_nonce_count,
+ const BoundNetLog& net_log,
scoped_refptr<HttpAuthHandler>* handler) {
HttpAuth::ChallengeTokenizer props(challenge.begin(), challenge.end());
return CreateAuthHandler(&props, target, origin, CREATE_PREEMPTIVE,
- digest_nonce_count, handler);
+ digest_nonce_count, net_log, handler);
}
// static
@@ -87,6 +89,7 @@ int HttpAuthHandlerRegistryFactory::CreateAuthHandler(
const GURL& origin,
CreateReason reason,
int digest_nonce_count,
+ const BoundNetLog& net_log,
scoped_refptr<HttpAuthHandler>* handler) {
if (!challenge->valid()) {
*handler = NULL;
@@ -100,7 +103,7 @@ int HttpAuthHandlerRegistryFactory::CreateAuthHandler(
}
DCHECK(it->second);
return it->second->CreateAuthHandler(challenge, target, origin, reason,
- digest_nonce_count, handler);
+ digest_nonce_count, net_log, handler);
}
HttpAuthHandlerFactory* HttpAuthHandlerRegistryFactory::GetSchemeFactory(