summaryrefslogtreecommitdiffstats
path: root/net/http/http_auth_handler_ntlm_win.cc
diff options
context:
space:
mode:
authorcbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-20 11:09:24 +0000
committercbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-20 11:09:24 +0000
commitfa82f93da256dede111ee4143c340e55a195d7e3 (patch)
tree36082a958021799fd1de1e5e30d4a861cda4bba6 /net/http/http_auth_handler_ntlm_win.cc
parent6278df2e8f1e77409e499addf16fa4679f3dca0b (diff)
downloadchromium_src-fa82f93da256dede111ee4143c340e55a195d7e3.zip
chromium_src-fa82f93da256dede111ee4143c340e55a195d7e3.tar.gz
chromium_src-fa82f93da256dede111ee4143c340e55a195d7e3.tar.bz2
Remove handler from HttpAuthCache.
This is part of a refactoring meant to simplify the connection phase of HttpNetworkTransaction. BUG=None TEST=net_unittests (which already includes unit tests for preemptive auth, as well as using values from cache). Review URL: http://codereview.chromium.org/2056003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47786 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_handler_ntlm_win.cc')
-rw-r--r--net/http/http_auth_handler_ntlm_win.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/http/http_auth_handler_ntlm_win.cc b/net/http/http_auth_handler_ntlm_win.cc
index 7488110..c54520e 100644
--- a/net/http/http_auth_handler_ntlm_win.cc
+++ b/net/http/http_auth_handler_ntlm_win.cc
@@ -74,8 +74,10 @@ int HttpAuthHandlerNTLM::Factory::CreateAuthHandler(
HttpAuth::ChallengeTokenizer* challenge,
HttpAuth::Target target,
const GURL& origin,
+ CreateReason reason,
+ int digest_nonce_count,
scoped_refptr<HttpAuthHandler>* handler) {
- if (is_unsupported_)
+ if (is_unsupported_ || reason == CREATE_PREEMPTIVE)
return ERR_UNSUPPORTED_AUTH_SCHEME;
if (max_token_length_ == 0) {
int rv = DetermineMaxTokenLength(sspi_library_, NTLMSP_NAME,