Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: net/http/http_auth_handler_negotiate.h

Issue 8549004: base::Bind: Convert HostResolver::Resolve. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 int DoResolveCanonicalName(); 136 int DoResolveCanonicalName();
137 int DoResolveCanonicalNameComplete(int rv); 137 int DoResolveCanonicalNameComplete(int rv);
138 int DoGenerateAuthToken(); 138 int DoGenerateAuthToken();
139 int DoGenerateAuthTokenComplete(int rv); 139 int DoGenerateAuthTokenComplete(int rv);
140 bool CanDelegate() const; 140 bool CanDelegate() const;
141 141
142 AuthSystem auth_system_; 142 AuthSystem auth_system_;
143 bool disable_cname_lookup_; 143 bool disable_cname_lookup_;
144 bool use_port_; 144 bool use_port_;
145 OldCompletionCallbackImpl<HttpAuthHandlerNegotiate> io_callback_;
146 HostResolver* const resolver_; 145 HostResolver* const resolver_;
147 146
148 // Members which are needed for DNS lookup + SPN. 147 // Members which are needed for DNS lookup + SPN.
149 AddressList address_list_; 148 AddressList address_list_;
150 scoped_ptr<SingleRequestHostResolver> single_resolve_; 149 scoped_ptr<SingleRequestHostResolver> single_resolve_;
151 150
152 // Things which should be consistent after first call to GenerateAuthToken. 151 // Things which should be consistent after first call to GenerateAuthToken.
153 bool already_called_; 152 bool already_called_;
154 bool has_credentials_; 153 bool has_credentials_;
155 AuthCredentials credentials_; 154 AuthCredentials credentials_;
156 std::wstring spn_; 155 std::wstring spn_;
157 156
158 // Things which vary each round. 157 // Things which vary each round.
159 OldCompletionCallback* user_callback_; 158 OldCompletionCallback* user_callback_;
160 std::string* auth_token_; 159 std::string* auth_token_;
161 160
162 State next_state_; 161 State next_state_;
163 162
164 const URLSecurityManager* url_security_manager_; 163 const URLSecurityManager* url_security_manager_;
165 }; 164 };
166 165
167 } // namespace net 166 } // namespace net
168 167
169 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ 168 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698