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

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

Issue 3360017: Fix multi-round authentication.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: SocketStream fix Created 10 years, 3 months 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
« no previous file with comments | « net/http/http_auth_handler_mock.cc ('k') | net/http/http_auth_handler_negotiate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/http/http_auth_handler_mock.cc ('k') | net/http/http_auth_handler_negotiate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698