summaryrefslogtreecommitdiffstats
path: root/net/http/http_auth_handler.h
diff options
context:
space:
mode:
authorcbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-20 11:09:24 +0000
committercbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-20 11:09:24 +0000
commitfa82f93da256dede111ee4143c340e55a195d7e3 (patch)
tree36082a958021799fd1de1e5e30d4a861cda4bba6 /net/http/http_auth_handler.h
parent6278df2e8f1e77409e499addf16fa4679f3dca0b (diff)
downloadchromium_src-fa82f93da256dede111ee4143c340e55a195d7e3.zip
chromium_src-fa82f93da256dede111ee4143c340e55a195d7e3.tar.gz
chromium_src-fa82f93da256dede111ee4143c340e55a195d7e3.tar.bz2
Remove handler from HttpAuthCache.
This is part of a refactoring meant to simplify the connection phase of HttpNetworkTransaction. BUG=None TEST=net_unittests (which already includes unit tests for preemptive auth, as well as using values from cache). Review URL: http://codereview.chromium.org/2056003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47786 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_handler.h')
-rw-r--r--net/http/http_auth_handler.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/http/http_auth_handler.h b/net/http/http_auth_handler.h
index 16e7822..6f2cb50 100644
--- a/net/http/http_auth_handler.h
+++ b/net/http/http_auth_handler.h
@@ -42,6 +42,11 @@ class HttpAuthHandler : public base::RefCounted<HttpAuthHandler> {
return realm_;
}
+ // The challenge which was issued when creating the handler.
+ const std::string challenge() const {
+ return auth_challenge_;
+ }
+
// Numeric rank based on the challenge's security level. Higher
// numbers are better. Used by HttpAuth::ChooseBestChallenge().
int score() const {
@@ -143,6 +148,9 @@ class HttpAuthHandler : public base::RefCounted<HttpAuthHandler> {
// The realm. Used by "basic" and "digest".
std::string realm_;
+ // The auth challenge.
+ std::string auth_challenge_;
+
// The {scheme, host, port} for the authentication target. Used by "ntlm"
// and "negotiate" to construct the service principal name.
GURL origin_;