summaryrefslogtreecommitdiffstats
path: root/net/http/http_auth_handler_ntlm.h
diff options
context:
space:
mode:
authorahendrickson@chromium.org <ahendrickson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-16 20:22:30 +0000
committerahendrickson@chromium.org <ahendrickson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-16 20:22:30 +0000
commitb4955e7d58c7bb329b6dddc6f33199fe17c7bfa1 (patch)
tree0685b539d6b9b4e438f82d27422d859c35bfb816 /net/http/http_auth_handler_ntlm.h
parent3a06fa5487850ef494aea79f5b46a97d06d31a4f (diff)
downloadchromium_src-b4955e7d58c7bb329b6dddc6f33199fe17c7bfa1.zip
chromium_src-b4955e7d58c7bb329b6dddc6f33199fe17c7bfa1.tar.gz
chromium_src-b4955e7d58c7bb329b6dddc6f33199fe17c7bfa1.tar.bz2
Refactored to pass the URLSecurityManager via the HttpAuthFactory class to the HttpNetworkSession.
Fixed a bug where the command-line whitelist was not being propagated down to the URLSecurityManager. BUG=29596 TEST=None Review URL: http://codereview.chromium.org/1634005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44811 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_handler_ntlm.h')
-rw-r--r--net/http/http_auth_handler_ntlm.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/net/http/http_auth_handler_ntlm.h b/net/http/http_auth_handler_ntlm.h
index f027471..1381b02 100644
--- a/net/http/http_auth_handler_ntlm.h
+++ b/net/http/http_auth_handler_ntlm.h
@@ -31,6 +31,8 @@
namespace net {
+class URLSecurityManager;
+
// Code for handling HTTP NTLM authentication.
class HttpAuthHandlerNTLM : public HttpAuthHandler {
public:
@@ -96,14 +98,15 @@ class HttpAuthHandlerNTLM : public HttpAuthHandler {
HttpAuthHandlerNTLM();
#endif
#if defined(NTLM_SSPI)
- HttpAuthHandlerNTLM(SSPILibrary* sspi_library, ULONG max_token_length);
+ HttpAuthHandlerNTLM(SSPILibrary* sspi_library, ULONG max_token_length,
+ const URLSecurityManager* url_security_manager);
#endif
virtual bool NeedsIdentity();
virtual bool IsFinalRound();
- virtual bool SupportsDefaultCredentials();
+ virtual bool AllowsDefaultCredentials();
virtual int GenerateAuthToken(const std::wstring& username,
const std::wstring& password,
@@ -164,6 +167,10 @@ class HttpAuthHandlerNTLM : public HttpAuthHandler {
// The base64-encoded string following "NTLM" in the "WWW-Authenticate" or
// "Proxy-Authenticate" response header.
std::string auth_data_;
+
+#if defined(NTLM_SSPI)
+ const URLSecurityManager* url_security_manager_;
+#endif
};
} // namespace net