| Index: net/http/http_auth_handler_factory.h
|
| diff --git a/net/http/http_auth_handler_factory.h b/net/http/http_auth_handler_factory.h
|
| index f677455402fe34ac6e9ac52d0eee66f568588dcc..587bb304d9d3d8a495656feda154b0fa48373054 100644
|
| --- a/net/http/http_auth_handler_factory.h
|
| +++ b/net/http/http_auth_handler_factory.h
|
| @@ -105,6 +105,13 @@ class HttpAuthHandlerRegistryFactory : public HttpAuthHandlerFactory {
|
| void RegisterSchemeFactory(const std::string& scheme,
|
| HttpAuthHandlerFactory* factory);
|
|
|
| + // Retrieve the factory for the specified |scheme|. If no factory exists
|
| + // for the |scheme|, NULL is returned. The returned factory must not be
|
| + // deleted by the caller, and it is guaranteed to be valid until either
|
| + // a new factory is registered for the same scheme, or until this
|
| + // registry factory is destroyed.
|
| + HttpAuthHandlerFactory* GetSchemeFactory(const std::string& scheme) const;
|
| +
|
| // Creates an auth handler by dispatching out to the registered factories
|
| // based on the first token in |challenge|.
|
| virtual int CreateAuthHandler(HttpAuth::ChallengeTokenizer* challenge,
|
| @@ -113,9 +120,6 @@ class HttpAuthHandlerRegistryFactory : public HttpAuthHandlerFactory {
|
| scoped_refptr<HttpAuthHandler>* handler);
|
|
|
| private:
|
| - // Retrieve the factory for the specified |scheme|
|
| - HttpAuthHandlerFactory* GetSchemeFactory(const std::string& scheme) const;
|
| -
|
| typedef std::map<std::string, HttpAuthHandlerFactory*> FactoryMap;
|
|
|
| FactoryMap factory_map_;
|
|
|