diff options
author | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-27 15:07:38 +0000 |
---|---|---|
committer | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-27 15:07:38 +0000 |
commit | ac5c06ec27c40539d4b8c3892def9400af2e3852 (patch) | |
tree | 28510fded7167f6d83dbd620c39ec62ee70a01bc /net/http/http_auth.cc | |
parent | 1dc475f2470ea831f31e8d553eea0e4e3d1216cb (diff) | |
download | chromium_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.cc')
-rw-r--r-- | net/http/http_auth.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/http/http_auth.cc b/net/http/http_auth.cc index 540edf9..e63afcd 100644 --- a/net/http/http_auth.cc +++ b/net/http/http_auth.cc @@ -24,6 +24,7 @@ void HttpAuth::ChooseBestChallenge( const HttpResponseHeaders* headers, Target target, const GURL& origin, + const BoundNetLog& net_log, scoped_refptr<HttpAuthHandler>* handler) { DCHECK(http_auth_handler_factory); @@ -36,7 +37,7 @@ void HttpAuth::ChooseBestChallenge( while (headers->EnumerateHeader(&iter, header_name, &challenge)) { ChallengeTokenizer props(challenge.begin(), challenge.end()); if (LowerCaseEqualsASCII(props.scheme(), (*handler)->scheme().c_str()) && - (*handler)->InitFromChallenge(&props, target, origin)) + (*handler)->InitFromChallenge(&props, target, origin, net_log)) return; } } @@ -49,7 +50,7 @@ void HttpAuth::ChooseBestChallenge( while (headers->EnumerateHeader(&iter, header_name, &cur_challenge)) { scoped_refptr<HttpAuthHandler> cur; int rv = http_auth_handler_factory->CreateAuthHandlerFromString( - cur_challenge, target, origin, &cur); + cur_challenge, target, origin, net_log, &cur); if (rv != OK) { LOG(WARNING) << "Unable to create AuthHandler. Status: " << ErrorToString(rv) << " Challenge: " << cur_challenge; |