| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 protected: | 115 protected: |
| 116 // This function acquires a credentials handle in the SSPI implementation. | 116 // This function acquires a credentials handle in the SSPI implementation. |
| 117 // It does nothing in the portable implementation. | 117 // It does nothing in the portable implementation. |
| 118 int InitializeBeforeFirstChallenge(); | 118 int InitializeBeforeFirstChallenge(); |
| 119 | 119 |
| 120 virtual bool Init(HttpAuth::ChallengeTokenizer* tok) OVERRIDE; | 120 virtual bool Init(HttpAuth::ChallengeTokenizer* tok) OVERRIDE; |
| 121 | 121 |
| 122 virtual int GenerateAuthTokenImpl(const AuthCredentials* credentials, | 122 virtual int GenerateAuthTokenImpl(const AuthCredentials* credentials, |
| 123 const HttpRequestInfo* request, | 123 const HttpRequestInfo* request, |
| 124 OldCompletionCallback* callback, | 124 const CompletionCallback& callback, |
| 125 std::string* auth_token) OVERRIDE; | 125 std::string* auth_token) OVERRIDE; |
| 126 | 126 |
| 127 private: | 127 private: |
| 128 virtual ~HttpAuthHandlerNTLM(); | 128 virtual ~HttpAuthHandlerNTLM(); |
| 129 | 129 |
| 130 #if defined(NTLM_PORTABLE) | 130 #if defined(NTLM_PORTABLE) |
| 131 // For unit tests to override the GenerateRandom and GetHostName functions. | 131 // For unit tests to override the GenerateRandom and GetHostName functions. |
| 132 // Returns the old function. | 132 // Returns the old function. |
| 133 static GenerateRandomProc SetGenerateRandomProc(GenerateRandomProc proc); | 133 static GenerateRandomProc SetGenerateRandomProc(GenerateRandomProc proc); |
| 134 static HostNameProc SetHostNameProc(HostNameProc proc); | 134 static HostNameProc SetHostNameProc(HostNameProc proc); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 165 std::string auth_data_; | 165 std::string auth_data_; |
| 166 | 166 |
| 167 #if defined(NTLM_SSPI) | 167 #if defined(NTLM_SSPI) |
| 168 URLSecurityManager* url_security_manager_; | 168 URLSecurityManager* url_security_manager_; |
| 169 #endif | 169 #endif |
| 170 }; | 170 }; |
| 171 | 171 |
| 172 } // namespace net | 172 } // namespace net |
| 173 | 173 |
| 174 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_ | 174 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_ |
| OLD | NEW |