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

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

Issue 3040016: Net: Convert username and password to string16. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: address comments Created 10 years, 4 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_negotiate_unittest.cc ('k') | net/http/http_auth_handler_ntlm.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_NTLM_H_ 5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_
6 #define NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_ 6 #define NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 virtual bool IsFinalRound(); 111 virtual bool IsFinalRound();
112 112
113 virtual bool AllowsDefaultCredentials(); 113 virtual bool AllowsDefaultCredentials();
114 114
115 protected: 115 protected:
116 virtual bool Init(HttpAuth::ChallengeTokenizer* tok) { 116 virtual bool Init(HttpAuth::ChallengeTokenizer* tok) {
117 return ParseChallenge(tok); 117 return ParseChallenge(tok);
118 } 118 }
119 119
120 virtual int GenerateAuthTokenImpl(const std::wstring* username, 120 virtual int GenerateAuthTokenImpl(const string16* username,
121 const std::wstring* password, 121 const string16* password,
122 const HttpRequestInfo* request, 122 const HttpRequestInfo* request,
123 CompletionCallback* callback, 123 CompletionCallback* callback,
124 std::string* auth_token); 124 std::string* auth_token);
125 125
126 // This function acquires a credentials handle in the SSPI implementation. 126 // This function acquires a credentials handle in the SSPI implementation.
127 // It does nothing in the portable implementation. 127 // It does nothing in the portable implementation.
128 int InitializeBeforeFirstChallenge(); 128 int InitializeBeforeFirstChallenge();
129 129
130 private: 130 private:
131 ~HttpAuthHandlerNTLM(); 131 ~HttpAuthHandlerNTLM();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 std::string auth_data_; 169 std::string auth_data_;
170 170
171 #if defined(NTLM_SSPI) 171 #if defined(NTLM_SSPI)
172 URLSecurityManager* url_security_manager_; 172 URLSecurityManager* url_security_manager_;
173 #endif 173 #endif
174 }; 174 };
175 175
176 } // namespace net 176 } // namespace net
177 177
178 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_ 178 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_
OLDNEW
« no previous file with comments | « net/http/http_auth_handler_negotiate_unittest.cc ('k') | net/http/http_auth_handler_ntlm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698