OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_ | 5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_ |
6 #define NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_ | 6 #define NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 110 |
111 virtual bool IsFinalRound(); | 111 virtual bool IsFinalRound(); |
112 | 112 |
113 virtual bool AllowsDefaultCredentials(); | 113 virtual bool AllowsDefaultCredentials(); |
114 | 114 |
115 protected: | 115 protected: |
116 virtual bool Init(HttpAuth::ChallengeTokenizer* tok) { | 116 virtual bool Init(HttpAuth::ChallengeTokenizer* tok) { |
117 return ParseChallenge(tok); | 117 return ParseChallenge(tok); |
118 } | 118 } |
119 | 119 |
120 virtual int GenerateAuthTokenImpl(const std::wstring* username, | 120 virtual int GenerateAuthTokenImpl(const string16* username, |
121 const std::wstring* password, | 121 const string16* password, |
122 const HttpRequestInfo* request, | 122 const HttpRequestInfo* request, |
123 CompletionCallback* callback, | 123 CompletionCallback* callback, |
124 std::string* auth_token); | 124 std::string* auth_token); |
125 | 125 |
126 // This function acquires a credentials handle in the SSPI implementation. | 126 // This function acquires a credentials handle in the SSPI implementation. |
127 // It does nothing in the portable implementation. | 127 // It does nothing in the portable implementation. |
128 int InitializeBeforeFirstChallenge(); | 128 int InitializeBeforeFirstChallenge(); |
129 | 129 |
130 private: | 130 private: |
131 ~HttpAuthHandlerNTLM(); | 131 ~HttpAuthHandlerNTLM(); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 std::string auth_data_; | 169 std::string auth_data_; |
170 | 170 |
171 #if defined(NTLM_SSPI) | 171 #if defined(NTLM_SSPI) |
172 URLSecurityManager* url_security_manager_; | 172 URLSecurityManager* url_security_manager_; |
173 #endif | 173 #endif |
174 }; | 174 }; |
175 | 175 |
176 } // namespace net | 176 } // namespace net |
177 | 177 |
178 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_ | 178 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_ |
OLD | NEW |