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 a0d0c490acb8485c9dff3dd35e3008f993f9ac79..bf5c031d6c453d7e060ee699b9c8c00041ac084d 100644 |
--- a/net/url_request/url_request_job_factory_impl.h |
+++ b/net/url_request/url_request_job_factory_impl.h |
@@ -23,6 +23,12 @@ class NET_EXPORT URLRequestJobFactoryImpl : public URLRequestJobFactory { |
URLRequestJobFactoryImpl(); |
~URLRequestJobFactoryImpl() override; |
+ // Creates a URLRequestJobFactoryImpl and adds an HttpProtocolHandler for each |
+ // scheme it can handle: http and https on all platforms, ws and wss for |
+ // platforms other than iOS |
+ static std::unique_ptr<URLRequestJobFactoryImpl> |
+ CreateWithHttpProtocolHandlers(); |
+ |
// Sets the ProtocolHandler for a scheme. Returns true on success, false on |
// failure (a ProtocolHandler already exists for |scheme|). |
bool SetProtocolHandler(const std::string& scheme, |