Index: net/url_request/url_request_job_factory_impl.h |
diff --git a/net/url_request/url_request_job_factory_impl.h b/net/url_request/url_request_job_factory_impl.h |
index ff27185a8573a728ed85fad93558ecb2f087351a..5f7dfe6df653c5b012cbf6524a560292f4b7675f 100644 |
--- a/net/url_request/url_request_job_factory_impl.h |
+++ b/net/url_request/url_request_job_factory_impl.h |
@@ -18,31 +18,24 @@ class NET_EXPORT URLRequestJobFactoryImpl : public URLRequestJobFactory { |
URLRequestJobFactoryImpl(); |
virtual ~URLRequestJobFactoryImpl(); |
+ // Sets the ProtocolHandler for a scheme. Returns true on success, false on |
+ // failure (a ProtocolHandler already exists for |scheme|). On success, |
+ // URLRequestJobFactory takes ownership of |protocol_handler|. |
+ bool SetProtocolHandler(const std::string& scheme, |
+ ProtocolHandler* protocol_handler); |
+ |
// URLRequestJobFactory implementation |
- virtual bool SetProtocolHandler(const std::string& scheme, |
- ProtocolHandler* protocol_handler) OVERRIDE; |
- virtual void AddInterceptor(Interceptor* interceptor) OVERRIDE; |
- virtual URLRequestJob* MaybeCreateJobWithInterceptor( |
- URLRequest* request, NetworkDelegate* network_delegate) const OVERRIDE; |
virtual URLRequestJob* MaybeCreateJobWithProtocolHandler( |
const std::string& scheme, |
URLRequest* request, |
NetworkDelegate* network_delegate) const OVERRIDE; |
- virtual URLRequestJob* MaybeInterceptRedirect( |
- const GURL& location, |
- URLRequest* request, |
- NetworkDelegate* network_delegate) const OVERRIDE; |
- virtual URLRequestJob* MaybeInterceptResponse( |
- URLRequest* request, NetworkDelegate* network_delegate) const OVERRIDE; |
virtual bool IsHandledProtocol(const std::string& scheme) const OVERRIDE; |
virtual bool IsHandledURL(const GURL& url) const OVERRIDE; |
private: |
typedef std::map<std::string, ProtocolHandler*> ProtocolHandlerMap; |
- typedef std::vector<Interceptor*> InterceptorList; |
ProtocolHandlerMap protocol_handler_map_; |
- InterceptorList interceptors_; |
DISALLOW_COPY_AND_ASSIGN(URLRequestJobFactoryImpl); |
}; |