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

Unified Diff: net/http/http_auth_handler_factory.h

Issue 3199002: --auth-schemes specifies which authentication schemes are supported on the co... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 | « chrome/common/chrome_switches.cc ('k') | net/http/http_auth_handler_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_auth_handler_factory.h
===================================================================
--- net/http/http_auth_handler_factory.h (revision 56586)
+++ net/http/http_auth_handler_factory.h (working copy)
@@ -8,6 +8,7 @@
#include <map>
#include <string>
+#include <vector>
#include "base/scoped_ptr.h"
#include "net/http/http_auth.h"
@@ -18,6 +19,7 @@
namespace net {
class BoundNetLog;
+class HostResolver;
class HttpAuthHandler;
class HttpAuthHandlerRegistryFactory;
@@ -152,6 +154,29 @@
const BoundNetLog& net_log,
scoped_ptr<HttpAuthHandler>* handler);
+ // Creates an HttpAuthHandlerRegistryFactory.
+ //
+ // |supported_schemes| is a list of authentication schemes. Valid values
+ // include "basic", "digest", "ntlm", and "negotiate", where case matters.
+ //
+ // |security_manager| is used by the NTLM and Negotiate authenticators
+ // to determine which servers Integrated Authentication can be used with. If
+ // NULL, Integrated Authentication will not be used with any server.
+ //
+ // |host_resolver| is used by the Negotiate authentication handler to perform
+ // CNAME lookups to generate a Kerberos SPN for the server. If the "negotiate"
+ // scheme is used and |negotiate_disable_cname_lookup| is false,
+ // |host_resolver| must not be NULL.
+ //
+ // |negotiate_disable_cname_lookup| and |negotiate_enable_port| both control
+ // how Negotiate does SPN generation, by default these should be false.
+ static HttpAuthHandlerRegistryFactory* Create(
+ const std::vector<std::string>& supported_schemes,
+ URLSecurityManager* security_manager,
+ HostResolver* host_resolver,
+ bool negotiate_disable_cname_lookup,
+ bool negotiate_enable_port);
+
private:
typedef std::map<std::string, HttpAuthHandlerFactory*> FactoryMap;
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | net/http/http_auth_handler_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698