diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-26 22:47:11 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-26 22:47:11 +0000 |
commit | d100e44f64d4abb2cc244cb61bb736c602146767 (patch) | |
tree | bfdd81d5424b2335e8543044dd726b0d30666663 /net/http/http_auth_handler_ntlm.cc | |
parent | 5d8054efc1e1f26ea806e46869df5e0a84e41a4c (diff) | |
download | chromium_src-d100e44f64d4abb2cc244cb61bb736c602146767.zip chromium_src-d100e44f64d4abb2cc244cb61bb736c602146767.tar.gz chromium_src-d100e44f64d4abb2cc244cb61bb736c602146767.tar.bz2 |
More net/ method ordering.
BUG=68682
TEST=compiles
Review URL: http://codereview.chromium.org/6339012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72710 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_handler_ntlm.cc')
-rw-r--r-- | net/http/http_auth_handler_ntlm.cc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/net/http/http_auth_handler_ntlm.cc b/net/http/http_auth_handler_ntlm.cc index c3e44ba..5090918 100644 --- a/net/http/http_auth_handler_ntlm.cc +++ b/net/http/http_auth_handler_ntlm.cc @@ -15,6 +15,19 @@ namespace net { +HttpAuth::AuthorizationResult HttpAuthHandlerNTLM::HandleAnotherChallenge( + HttpAuth::ChallengeTokenizer* challenge) { + return ParseChallenge(challenge, false); +} + +bool HttpAuthHandlerNTLM::Init(HttpAuth::ChallengeTokenizer* tok) { + auth_scheme_ = HttpAuth::AUTH_SCHEME_NTLM; + score_ = 3; + properties_ = ENCRYPTS_IDENTITY | IS_CONNECTION_BASED; + + return ParseChallenge(tok, true) == HttpAuth::AUTHORIZATION_RESULT_ACCEPT; +} + int HttpAuthHandlerNTLM::GenerateAuthTokenImpl( const string16* username, const string16* password, @@ -92,19 +105,6 @@ int HttpAuthHandlerNTLM::GenerateAuthTokenImpl( #endif } -bool HttpAuthHandlerNTLM::Init(HttpAuth::ChallengeTokenizer* tok) { - auth_scheme_ = HttpAuth::AUTH_SCHEME_NTLM; - score_ = 3; - properties_ = ENCRYPTS_IDENTITY | IS_CONNECTION_BASED; - - return ParseChallenge(tok, true) == HttpAuth::AUTHORIZATION_RESULT_ACCEPT; -} - -HttpAuth::AuthorizationResult HttpAuthHandlerNTLM::HandleAnotherChallenge( - HttpAuth::ChallengeTokenizer* challenge) { - return ParseChallenge(challenge, false); -} - // The NTLM challenge header looks like: // WWW-Authenticate: NTLM auth-data HttpAuth::AuthorizationResult HttpAuthHandlerNTLM::ParseChallenge( |