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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 bool negotiate_enable_port); | 182 bool negotiate_enable_port); |
183 | 183 |
184 // Creates an auth handler by dispatching out to the registered factories | 184 // Creates an auth handler by dispatching out to the registered factories |
185 // based on the first token in |challenge|. | 185 // based on the first token in |challenge|. |
186 virtual int CreateAuthHandler(HttpAuthChallengeTokenizer* challenge, | 186 virtual int CreateAuthHandler(HttpAuthChallengeTokenizer* challenge, |
187 HttpAuth::Target target, | 187 HttpAuth::Target target, |
188 const GURL& origin, | 188 const GURL& origin, |
189 CreateReason reason, | 189 CreateReason reason, |
190 int digest_nonce_count, | 190 int digest_nonce_count, |
191 const BoundNetLog& net_log, | 191 const BoundNetLog& net_log, |
192 scoped_ptr<HttpAuthHandler>* handler) OVERRIDE; | 192 scoped_ptr<HttpAuthHandler>* handler) override; |
193 | 193 |
194 private: | 194 private: |
195 typedef std::map<std::string, HttpAuthHandlerFactory*> FactoryMap; | 195 typedef std::map<std::string, HttpAuthHandlerFactory*> FactoryMap; |
196 | 196 |
197 FactoryMap factory_map_; | 197 FactoryMap factory_map_; |
198 DISALLOW_COPY_AND_ASSIGN(HttpAuthHandlerRegistryFactory); | 198 DISALLOW_COPY_AND_ASSIGN(HttpAuthHandlerRegistryFactory); |
199 }; | 199 }; |
200 | 200 |
201 } // namespace net | 201 } // namespace net |
202 | 202 |
203 #endif // NET_HTTP_HTTP_AUTH_HANDLER_FACTORY_H_ | 203 #endif // NET_HTTP_HTTP_AUTH_HANDLER_FACTORY_H_ |
OLD | NEW |