| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 void OnIOComplete(int result); | 136 void OnIOComplete(int result); |
| 137 void DoCallback(int result); | 137 void DoCallback(int result); |
| 138 int DoLoop(int result); | 138 int DoLoop(int result); |
| 139 | 139 |
| 140 int DoResolveCanonicalName(); | 140 int DoResolveCanonicalName(); |
| 141 int DoResolveCanonicalNameComplete(int rv); | 141 int DoResolveCanonicalNameComplete(int rv); |
| 142 int DoGenerateAuthToken(); | 142 int DoGenerateAuthToken(); |
| 143 int DoGenerateAuthTokenComplete(int rv); | 143 int DoGenerateAuthTokenComplete(int rv); |
| 144 bool CanDelegate() const; |
| 144 | 145 |
| 145 AuthSystem auth_system_; | 146 AuthSystem auth_system_; |
| 146 bool disable_cname_lookup_; | 147 bool disable_cname_lookup_; |
| 147 bool use_port_; | 148 bool use_port_; |
| 148 CompletionCallbackImpl<HttpAuthHandlerNegotiate> io_callback_; | 149 CompletionCallbackImpl<HttpAuthHandlerNegotiate> io_callback_; |
| 149 scoped_refptr<HostResolver> resolver_; | 150 scoped_refptr<HostResolver> resolver_; |
| 150 | 151 |
| 151 // Members which are needed for DNS lookup + SPN. | 152 // Members which are needed for DNS lookup + SPN. |
| 152 AddressList address_list_; | 153 AddressList address_list_; |
| 153 scoped_ptr<SingleRequestHostResolver> single_resolve_; | 154 scoped_ptr<SingleRequestHostResolver> single_resolve_; |
| 154 | 155 |
| 155 // Things which should be consistent after first call to GenerateAuthToken. | 156 // Things which should be consistent after first call to GenerateAuthToken. |
| 156 bool already_called_; | 157 bool already_called_; |
| 157 bool has_username_and_password_; | 158 bool has_username_and_password_; |
| 158 string16 username_; | 159 string16 username_; |
| 159 string16 password_; | 160 string16 password_; |
| 160 std::wstring spn_; | 161 std::wstring spn_; |
| 161 | 162 |
| 162 // Things which vary each round. | 163 // Things which vary each round. |
| 163 CompletionCallback* user_callback_; | 164 CompletionCallback* user_callback_; |
| 164 std::string* auth_token_; | 165 std::string* auth_token_; |
| 165 | 166 |
| 166 State next_state_; | 167 State next_state_; |
| 167 | 168 |
| 168 URLSecurityManager* url_security_manager_; | 169 const URLSecurityManager* url_security_manager_; |
| 169 }; | 170 }; |
| 170 | 171 |
| 171 } // namespace net | 172 } // namespace net |
| 172 | 173 |
| 173 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ | 174 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ |
| OLD | NEW |