| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 // Creates a standard HttpAuthHandlerRegistryFactory. The caller is | 109 // Creates a standard HttpAuthHandlerRegistryFactory. The caller is |
| 110 // responsible for deleting the factory. | 110 // responsible for deleting the factory. |
| 111 // The default factory supports Basic, Digest, NTLM, and Negotiate schemes. | 111 // The default factory supports Basic, Digest, NTLM, and Negotiate schemes. |
| 112 // | 112 // |
| 113 // |resolver| is used by the Negotiate authentication handler to perform | 113 // |resolver| is used by the Negotiate authentication handler to perform |
| 114 // CNAME lookups to generate a Kerberos SPN for the server. It must be | 114 // CNAME lookups to generate a Kerberos SPN for the server. It must be |
| 115 // non-NULL. |resolver| must remain valid for the lifetime of the | 115 // non-NULL. |resolver| must remain valid for the lifetime of the |
| 116 // HttpAuthHandlerRegistryFactory and any HttpAuthHandlers created by said | 116 // HttpAuthHandlerRegistryFactory and any HttpAuthHandlers created by said |
| 117 // factory. | 117 // factory. |
| 118 static HttpAuthHandlerRegistryFactory* CreateDefault(HostResolver* resolver); | 118 static scoped_ptr<HttpAuthHandlerRegistryFactory> CreateDefault( |
| 119 HostResolver* resolver); |
| 119 | 120 |
| 120 private: | 121 private: |
| 121 // The URL security manager | 122 // The URL security manager |
| 122 URLSecurityManager* url_security_manager_; | 123 URLSecurityManager* url_security_manager_; |
| 123 | 124 |
| 124 DISALLOW_COPY_AND_ASSIGN(HttpAuthHandlerFactory); | 125 DISALLOW_COPY_AND_ASSIGN(HttpAuthHandlerFactory); |
| 125 }; | 126 }; |
| 126 | 127 |
| 127 // The HttpAuthHandlerRegistryFactory dispatches create requests out | 128 // The HttpAuthHandlerRegistryFactory dispatches create requests out |
| 128 // to other factories based on the auth scheme. | 129 // to other factories based on the auth scheme. |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 private: | 201 private: |
| 201 typedef std::map<std::string, HttpAuthHandlerFactory*> FactoryMap; | 202 typedef std::map<std::string, HttpAuthHandlerFactory*> FactoryMap; |
| 202 | 203 |
| 203 FactoryMap factory_map_; | 204 FactoryMap factory_map_; |
| 204 DISALLOW_COPY_AND_ASSIGN(HttpAuthHandlerRegistryFactory); | 205 DISALLOW_COPY_AND_ASSIGN(HttpAuthHandlerRegistryFactory); |
| 205 }; | 206 }; |
| 206 | 207 |
| 207 } // namespace net | 208 } // namespace net |
| 208 | 209 |
| 209 #endif // NET_HTTP_HTTP_AUTH_HANDLER_FACTORY_H_ | 210 #endif // NET_HTTP_HTTP_AUTH_HANDLER_FACTORY_H_ |
| OLD | NEW |