| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 virtual bool Init(HttpAuth::ChallengeTokenizer* tok); | 121 virtual bool Init(HttpAuth::ChallengeTokenizer* tok); |
| 122 | 122 |
| 123 virtual int GenerateAuthTokenImpl(const string16* username, | 123 virtual int GenerateAuthTokenImpl(const string16* username, |
| 124 const string16* password, | 124 const string16* password, |
| 125 const HttpRequestInfo* request, | 125 const HttpRequestInfo* request, |
| 126 CompletionCallback* callback, | 126 CompletionCallback* callback, |
| 127 std::string* auth_token); | 127 std::string* auth_token); |
| 128 | 128 |
| 129 private: | 129 private: |
| 130 ~HttpAuthHandlerNTLM(); | 130 virtual ~HttpAuthHandlerNTLM(); |
| 131 | 131 |
| 132 #if defined(NTLM_PORTABLE) | 132 #if defined(NTLM_PORTABLE) |
| 133 // For unit tests to override the GenerateRandom and GetHostName functions. | 133 // For unit tests to override the GenerateRandom and GetHostName functions. |
| 134 // Returns the old function. | 134 // Returns the old function. |
| 135 static GenerateRandomProc SetGenerateRandomProc(GenerateRandomProc proc); | 135 static GenerateRandomProc SetGenerateRandomProc(GenerateRandomProc proc); |
| 136 static HostNameProc SetHostNameProc(HostNameProc proc); | 136 static HostNameProc SetHostNameProc(HostNameProc proc); |
| 137 #endif | 137 #endif |
| 138 | 138 |
| 139 // Parse the challenge, saving the results into this instance. | 139 // Parse the challenge, saving the results into this instance. |
| 140 HttpAuth::AuthorizationResult ParseChallenge( | 140 HttpAuth::AuthorizationResult ParseChallenge( |
| (...skipping 27 matching lines...) Expand all Loading... |
| 168 std::string auth_data_; | 168 std::string auth_data_; |
| 169 | 169 |
| 170 #if defined(NTLM_SSPI) | 170 #if defined(NTLM_SSPI) |
| 171 URLSecurityManager* url_security_manager_; | 171 URLSecurityManager* url_security_manager_; |
| 172 #endif | 172 #endif |
| 173 }; | 173 }; |
| 174 | 174 |
| 175 } // namespace net | 175 } // namespace net |
| 176 | 176 |
| 177 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_ | 177 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_ |
| OLD | NEW |