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

Side by Side Diff: net/http/http_auth_handler_factory.h

Issue 1290243007: Shift URLRequestContextStorage over to taking scoped_ptrs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Paul_BuilderGrab
Patch Set: Sync'd to revision p349162. Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « net/cert_net/cert_net_fetcher_impl_unittest.cc ('k') | net/http/http_auth_handler_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/cert_net/cert_net_fetcher_impl_unittest.cc ('k') | net/http/http_auth_handler_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698