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

Unified Diff: net/http/http_auth_controller.h

Issue 1157333005: [net/http auth] Use strings to identify authentication schemes. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_auth_challenge_tokenizer_unittest.cc ('k') | net/http/http_auth_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_auth_controller.h
diff --git a/net/http/http_auth_controller.h b/net/http/http_auth_controller.h
index 2df9d57274dd07a6defa2c64a63ae585a189b62a..637b7227375a4320dade7af0bcfac59565ac6ee1 100644
--- a/net/http/http_auth_controller.h
+++ b/net/http/http_auth_controller.h
@@ -15,6 +15,7 @@
#include "net/base/completion_callback.h"
#include "net/base/net_export.h"
#include "net/http/http_auth.h"
+#include "net/http/http_auth_scheme_set.h"
#include "net/log/net_log.h"
#include "url/gurl.h"
@@ -69,8 +70,8 @@ class NET_EXPORT_PRIVATE HttpAuthController
virtual scoped_refptr<AuthChallengeInfo> auth_info();
- virtual bool IsAuthSchemeDisabled(HttpAuth::Scheme scheme) const;
- virtual void DisableAuthScheme(HttpAuth::Scheme scheme);
+ virtual bool IsAuthSchemeDisabled(const std::string& scheme) const;
+ virtual void DisableAuthScheme(const std::string& scheme);
virtual void DisableEmbeddedIdentity();
private:
@@ -161,7 +162,7 @@ class NET_EXPORT_PRIVATE HttpAuthController
HttpAuthCache* const http_auth_cache_;
HttpAuthHandlerFactory* const http_auth_handler_factory_;
- std::set<HttpAuth::Scheme> disabled_schemes_;
+ HttpAuthSchemeSet disabled_schemes_;
CompletionCallback callback_;
};
« no previous file with comments | « net/http/http_auth_challenge_tokenizer_unittest.cc ('k') | net/http/http_auth_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698