| OLD | NEW |
| 1 // Copyright (c) 2010 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 |
| 11 // This contains the portable and the SSPI implementations for NTLM. | 11 // This contains the portable and the SSPI implementations for NTLM. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 28 #include "base/basictypes.h" | 28 #include "base/basictypes.h" |
| 29 #include "base/string16.h" | 29 #include "base/string16.h" |
| 30 #include "net/http/http_auth_handler.h" | 30 #include "net/http/http_auth_handler.h" |
| 31 #include "net/http/http_auth_handler_factory.h" | 31 #include "net/http/http_auth_handler_factory.h" |
| 32 | 32 |
| 33 namespace net { | 33 namespace net { |
| 34 | 34 |
| 35 class URLSecurityManager; | 35 class URLSecurityManager; |
| 36 | 36 |
| 37 // Code for handling HTTP NTLM authentication. | 37 // Code for handling HTTP NTLM authentication. |
| 38 class HttpAuthHandlerNTLM : public HttpAuthHandler { | 38 class NET_TEST HttpAuthHandlerNTLM : public HttpAuthHandler { |
| 39 public: | 39 public: |
| 40 class Factory : public HttpAuthHandlerFactory { | 40 class Factory : public HttpAuthHandlerFactory { |
| 41 public: | 41 public: |
| 42 Factory(); | 42 Factory(); |
| 43 virtual ~Factory(); | 43 virtual ~Factory(); |
| 44 | 44 |
| 45 virtual int CreateAuthHandler(HttpAuth::ChallengeTokenizer* challenge, | 45 virtual int CreateAuthHandler(HttpAuth::ChallengeTokenizer* challenge, |
| 46 HttpAuth::Target target, | 46 HttpAuth::Target target, |
| 47 const GURL& origin, | 47 const GURL& origin, |
| 48 CreateReason reason, | 48 CreateReason reason, |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |