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

Unified Diff: net/url_request/url_request_job_factory_impl.h

Issue 1888963004: Add HttpProtocolHandler and convert everything to use it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-supports-scheme
Patch Set: even more rebase Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
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..c759aaa24f1835b555c40478c5f41e338a7a5ac6 100644
--- a/net/url_request/url_request_job_factory_impl.h
+++ b/net/url_request/url_request_job_factory_impl.h
@@ -23,6 +23,9 @@ class NET_EXPORT URLRequestJobFactoryImpl : public URLRequestJobFactory {
URLRequestJobFactoryImpl();
~URLRequestJobFactoryImpl() override;
+ static std::unique_ptr<URLRequestJobFactoryImpl>
+ CreateWithDefaultProtocolHandlers();
mmenke 2016/04/21 20:58:01 Think this needs a comment mentioning what schemes
mmenke 2016/04/21 20:58:01 Maybe rename with CreateWithHttpProtocolHandlers?
mgersh 2016/04/22 20:27:15 Done.
mgersh 2016/04/22 20:27:15 Done.
+
// 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,

Powered by Google App Engine
This is Rietveld 408576698