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>2011-01-13 13:31:17 +0000
committercbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-13 13:31:17 +0000
commit547fc79ddbed132ba12797c4f0e0aeecd3b63b8f (patch)
tree618e14cd18540b93815df91ffd01bd245d3691b4 /net/http/http_auth_handler.h
parent1597bafcf13b29051d16debae1d561b385550572 (diff)
downloadchromium_src-547fc79ddbed132ba12797c4f0e0aeecd3b63b8f.zip
chromium_src-547fc79ddbed132ba12797c4f0e0aeecd3b63b8f.tar.gz
chromium_src-547fc79ddbed132ba12797c4f0e0aeecd3b63b8f.tar.bz2
Cleanup: Use AUTH_SCHEME enum instead of a string.
BUG=None TEST=trybots Review URL: http://codereview.chromium.org/6191001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71318 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_handler.h')
-rw-r--r--net/http/http_auth_handler.h20
1 files changed, 2 insertions, 18 deletions
diff --git a/net/http/http_auth_handler.h b/net/http/http_auth_handler.h
index 65340df..0a574e5 100644
--- a/net/http/http_auth_handler.h
+++ b/net/http/http_auth_handler.h
@@ -22,14 +22,6 @@ struct HttpRequestInfo;
// HttpAuthHandler objects are typically created by an HttpAuthHandlerFactory.
class HttpAuthHandler {
public:
- enum AuthScheme {
- AUTH_SCHEME_BASIC = 0,
- AUTH_SCHEME_DIGEST,
- AUTH_SCHEME_NTLM,
- AUTH_SCHEME_NEGOTIATE,
- AUTH_SCHEME_MAX,
- };
-
HttpAuthHandler();
virtual ~HttpAuthHandler();
@@ -84,15 +76,10 @@ class HttpAuthHandler {
std::string* auth_token);
// The authentication scheme as an enumerated value.
- AuthScheme auth_scheme() const {
+ HttpAuth::Scheme auth_scheme() const {
return auth_scheme_;
}
- // Lowercase name of the auth scheme
- const std::string& scheme() const {
- return scheme_;
- }
-
// The realm value that was parsed during Init().
const std::string& realm() const {
return realm_;
@@ -171,10 +158,7 @@ class HttpAuthHandler {
std::string* auth_token) = 0;
// The auth-scheme as an enumerated value.
- AuthScheme auth_scheme_;
-
- // The lowercase auth-scheme {"basic", "digest", "ntlm", "negotiate"}
- std::string scheme_;
+ HttpAuth::Scheme auth_scheme_;
// The realm. Used by "basic" and "digest".
std::string realm_;