Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 171 // |gssapi_library_name| specifies the name of the GSSAPI library that will | 171 // |gssapi_library_name| specifies the name of the GSSAPI library that will |
| 172 // be loaded on all platforms except Windows. | 172 // be loaded on all platforms except Windows. |
| 173 // | 173 // |
| 174 // |negotiate_disable_cname_lookup| and |negotiate_enable_port| both control | 174 // |negotiate_disable_cname_lookup| and |negotiate_enable_port| both control |
| 175 // how Negotiate does SPN generation, by default these should be false. | 175 // how Negotiate does SPN generation, by default these should be false. |
| 176 static HttpAuthHandlerRegistryFactory* Create( | 176 static HttpAuthHandlerRegistryFactory* Create( |
| 177 const std::vector<std::string>& supported_schemes, | 177 const std::vector<std::string>& supported_schemes, |
| 178 URLSecurityManager* security_manager, | 178 URLSecurityManager* security_manager, |
| 179 HostResolver* host_resolver, | 179 HostResolver* host_resolver, |
| 180 const std::string& gssapi_library_name, | 180 const std::string& gssapi_library_name, |
| 181 const std::string& auth_android_negotiate_account_type, | |
|
Ryan Sleevi
2015/06/16 01:07:46
This certainly feels like a layering smell - to ex
aberent
2015/06/19 15:06:24
I don't see that it is very different from gssapi_
| |
| 181 bool negotiate_disable_cname_lookup, | 182 bool negotiate_disable_cname_lookup, |
| 182 bool negotiate_enable_port); | 183 bool negotiate_enable_port); |
| 183 | 184 |
| 184 // Creates an auth handler by dispatching out to the registered factories | 185 // Creates an auth handler by dispatching out to the registered factories |
| 185 // based on the first token in |challenge|. | 186 // based on the first token in |challenge|. |
| 186 int CreateAuthHandler(HttpAuthChallengeTokenizer* challenge, | 187 int CreateAuthHandler(HttpAuthChallengeTokenizer* challenge, |
| 187 HttpAuth::Target target, | 188 HttpAuth::Target target, |
| 188 const GURL& origin, | 189 const GURL& origin, |
| 189 CreateReason reason, | 190 CreateReason reason, |
| 190 int digest_nonce_count, | 191 int digest_nonce_count, |
| 191 const BoundNetLog& net_log, | 192 const BoundNetLog& net_log, |
| 192 scoped_ptr<HttpAuthHandler>* handler) override; | 193 scoped_ptr<HttpAuthHandler>* handler) override; |
| 193 | 194 |
| 194 private: | 195 private: |
| 195 typedef std::map<std::string, HttpAuthHandlerFactory*> FactoryMap; | 196 typedef std::map<std::string, HttpAuthHandlerFactory*> FactoryMap; |
| 196 | 197 |
| 197 FactoryMap factory_map_; | 198 FactoryMap factory_map_; |
| 198 DISALLOW_COPY_AND_ASSIGN(HttpAuthHandlerRegistryFactory); | 199 DISALLOW_COPY_AND_ASSIGN(HttpAuthHandlerRegistryFactory); |
| 199 }; | 200 }; |
| 200 | 201 |
| 201 } // namespace net | 202 } // namespace net |
| 202 | 203 |
| 203 #endif // NET_HTTP_HTTP_AUTH_HANDLER_FACTORY_H_ | 204 #endif // NET_HTTP_HTTP_AUTH_HANDLER_FACTORY_H_ |
| OLD | NEW |