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