summaryrefslogtreecommitdiffstats
path: root/net/http/http_auth.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_auth.h')
-rw-r--r--net/http/http_auth.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/net/http/http_auth.h b/net/http/http_auth.h
index 3bb2a86..7442898 100644
--- a/net/http/http_auth.h
+++ b/net/http/http_auth.h
@@ -53,6 +53,7 @@ class HttpAuth {
IdentitySource source;
bool invalid;
+ // TODO(wtc): |username| and |password| should be string16.
std::wstring username;
std::wstring password;
};
@@ -74,8 +75,14 @@ class HttpAuth {
// Iterate through the challenge headers, and pick the best one that
// we support. Obtains the implementation class for handling the challenge,
- // and passes it back in |*handler|. If no supported challenge was found
- // |*handler| is set to NULL.
+ // and passes it back in |*handler|. If the existing handler in |*handler|
+ // should continue to be used (such as for the NTLM authentication scheme),
+ // |*handler| is unchanged. If no supported challenge was found, |*handler|
+ // is set to NULL.
+ //
+ // TODO(wtc): Continuing to use the existing handler in |*handler| (for
+ // NTLM) is new behavior. Rename ChooseBestChallenge to fully encompass
+ // what it does now.
static void ChooseBestChallenge(const HttpResponseHeaders* headers,
Target target,
scoped_refptr<HttpAuthHandler>* handler);