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

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

Issue 8990001: base::Bind: Convert most of net/http. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clang. Created 9 years 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_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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 protected: 115 protected:
116 // This function acquires a credentials handle in the SSPI implementation. 116 // This function acquires a credentials handle in the SSPI implementation.
117 // It does nothing in the portable implementation. 117 // It does nothing in the portable implementation.
118 int InitializeBeforeFirstChallenge(); 118 int InitializeBeforeFirstChallenge();
119 119
120 virtual bool Init(HttpAuth::ChallengeTokenizer* tok) OVERRIDE; 120 virtual bool Init(HttpAuth::ChallengeTokenizer* tok) OVERRIDE;
121 121
122 virtual int GenerateAuthTokenImpl(const AuthCredentials* credentials, 122 virtual int GenerateAuthTokenImpl(const AuthCredentials* credentials,
123 const HttpRequestInfo* request, 123 const HttpRequestInfo* request,
124 OldCompletionCallback* callback, 124 const CompletionCallback& callback,
125 std::string* auth_token) OVERRIDE; 125 std::string* auth_token) OVERRIDE;
126 126
127 private: 127 private:
128 virtual ~HttpAuthHandlerNTLM(); 128 virtual ~HttpAuthHandlerNTLM();
129 129
130 #if defined(NTLM_PORTABLE) 130 #if defined(NTLM_PORTABLE)
131 // For unit tests to override the GenerateRandom and GetHostName functions. 131 // For unit tests to override the GenerateRandom and GetHostName functions.
132 // Returns the old function. 132 // Returns the old function.
133 static GenerateRandomProc SetGenerateRandomProc(GenerateRandomProc proc); 133 static GenerateRandomProc SetGenerateRandomProc(GenerateRandomProc proc);
134 static HostNameProc SetHostNameProc(HostNameProc proc); 134 static HostNameProc SetHostNameProc(HostNameProc proc);
(...skipping 30 matching lines...) Expand all
165 std::string auth_data_; 165 std::string auth_data_;
166 166
167 #if defined(NTLM_SSPI) 167 #if defined(NTLM_SSPI)
168 URLSecurityManager* url_security_manager_; 168 URLSecurityManager* url_security_manager_;
169 #endif 169 #endif
170 }; 170 };
171 171
172 } // namespace net 172 } // namespace net
173 173
174 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_ 174 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NTLM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698