| 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_NEGOTIATE_H_ | 5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ |
| 6 #define NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ | 6 #define NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 #endif | 100 #endif |
| 101 URLSecurityManager* url_security_manager, | 101 URLSecurityManager* url_security_manager, |
| 102 HostResolver* host_resolver, | 102 HostResolver* host_resolver, |
| 103 bool disable_cname_lookup, | 103 bool disable_cname_lookup, |
| 104 bool use_port); | 104 bool use_port); |
| 105 | 105 |
| 106 virtual ~HttpAuthHandlerNegotiate(); | 106 virtual ~HttpAuthHandlerNegotiate(); |
| 107 | 107 |
| 108 virtual bool NeedsIdentity(); | 108 virtual bool NeedsIdentity(); |
| 109 | 109 |
| 110 virtual bool IsFinalRound(); | 110 virtual bool AllowsDefaultCredentials(); |
| 111 | 111 |
| 112 virtual bool AllowsDefaultCredentials(); | 112 virtual HttpAuth::AuthorizationResult HandleAnotherChallenge( |
| 113 HttpAuth::ChallengeTokenizer* challenge); |
| 113 | 114 |
| 114 // These are public for unit tests | 115 // These are public for unit tests |
| 115 std::wstring CreateSPN(const AddressList& address_list, const GURL& orign); | 116 std::wstring CreateSPN(const AddressList& address_list, const GURL& orign); |
| 116 const std::wstring& spn() const { return spn_; } | 117 const std::wstring& spn() const { return spn_; } |
| 117 | 118 |
| 118 protected: | 119 protected: |
| 119 virtual bool Init(HttpAuth::ChallengeTokenizer* challenge); | 120 virtual bool Init(HttpAuth::ChallengeTokenizer* challenge); |
| 120 | 121 |
| 121 virtual int GenerateAuthTokenImpl(const string16* username, | 122 virtual int GenerateAuthTokenImpl(const string16* username, |
| 122 const string16* password, | 123 const string16* password, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 std::string* auth_token_; | 166 std::string* auth_token_; |
| 166 | 167 |
| 167 State next_state_; | 168 State next_state_; |
| 168 | 169 |
| 169 const URLSecurityManager* url_security_manager_; | 170 const URLSecurityManager* url_security_manager_; |
| 170 }; | 171 }; |
| 171 | 172 |
| 172 } // namespace net | 173 } // namespace net |
| 173 | 174 |
| 174 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ | 175 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ |
| OLD | NEW |