Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_FACTORY_H_ | 5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_FACTORY_H_ |
| 6 #define NET_HTTP_HTTP_AUTH_HANDLER_FACTORY_H_ | 6 #define NET_HTTP_HTTP_AUTH_HANDLER_FACTORY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 167 // | 167 // |
| 168 // |security_manager| is used by the NTLM and Negotiate authenticators | 168 // |security_manager| is used by the NTLM and Negotiate authenticators |
| 169 // to determine which servers Integrated Authentication can be used with. If | 169 // to determine which servers Integrated Authentication can be used with. If |
| 170 // NULL, Integrated Authentication will not be used with any server. | 170 // NULL, Integrated Authentication will not be used with any server. |
| 171 // | 171 // |
| 172 // |host_resolver| is used by the Negotiate authentication handler to perform | 172 // |host_resolver| is used by the Negotiate authentication handler to perform |
| 173 // CNAME lookups to generate a Kerberos SPN for the server. If the "negotiate" | 173 // CNAME lookups to generate a Kerberos SPN for the server. If the "negotiate" |
| 174 // scheme is used and |negotiate_disable_cname_lookup| is false, | 174 // scheme is used and |negotiate_disable_cname_lookup| is false, |
| 175 // |host_resolver| must not be NULL. | 175 // |host_resolver| must not be NULL. |
| 176 // | 176 // |
| 177 // |gssapi_library_name| specifies the name of the GSSAPI library that will | |
| 178 // be loaded. This parameter is disregarded on Windows. | |
|
danno
2010/11/10 16:52:01
... be loaded on all platforms except Windows.
Jakob Kummerow (corp)
2010/11/10 17:48:39
Done.
| |
| 179 // | |
| 177 // |negotiate_disable_cname_lookup| and |negotiate_enable_port| both control | 180 // |negotiate_disable_cname_lookup| and |negotiate_enable_port| both control |
| 178 // how Negotiate does SPN generation, by default these should be false. | 181 // how Negotiate does SPN generation, by default these should be false. |
| 179 static HttpAuthHandlerRegistryFactory* Create( | 182 static HttpAuthHandlerRegistryFactory* Create( |
| 180 const std::vector<std::string>& supported_schemes, | 183 const std::vector<std::string>& supported_schemes, |
| 181 URLSecurityManager* security_manager, | 184 URLSecurityManager* security_manager, |
| 182 HostResolver* host_resolver, | 185 HostResolver* host_resolver, |
| 186 const std::string& gssapi_library_name, | |
| 183 bool negotiate_disable_cname_lookup, | 187 bool negotiate_disable_cname_lookup, |
| 184 bool negotiate_enable_port); | 188 bool negotiate_enable_port); |
| 185 | 189 |
| 186 private: | 190 private: |
| 187 typedef std::map<std::string, HttpAuthHandlerFactory*> FactoryMap; | 191 typedef std::map<std::string, HttpAuthHandlerFactory*> FactoryMap; |
| 188 | 192 |
| 189 FactoryMap factory_map_; | 193 FactoryMap factory_map_; |
| 190 DISALLOW_COPY_AND_ASSIGN(HttpAuthHandlerRegistryFactory); | 194 DISALLOW_COPY_AND_ASSIGN(HttpAuthHandlerRegistryFactory); |
| 191 }; | 195 }; |
| 192 | 196 |
| 193 } // namespace net | 197 } // namespace net |
| 194 | 198 |
| 195 #endif // NET_HTTP_HTTP_AUTH_HANDLER_FACTORY_H_ | 199 #endif // NET_HTTP_HTTP_AUTH_HANDLER_FACTORY_H_ |
| OLD | NEW |