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

Unified Diff: net/url_request/http_protocol_handler.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: rebase (needs fixing) Created 4 years, 2 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
« no previous file with comments | « net/spdy/spdy_test_util_common.cc ('k') | net/url_request/http_protocol_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/http_protocol_handler.h
diff --git a/net/url_request/http_protocol_handler.h b/net/url_request/http_protocol_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..01aab55731df6bb0d826450d614c56363b566db1
--- /dev/null
+++ b/net/url_request/http_protocol_handler.h
@@ -0,0 +1,28 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_URL_REQUEST_HTTP_PROTOCOL_HANDLER_H_
+#define NET_URL_REQUEST_HTTP_PROTOCOL_HANDLER_H_
+
+#include "net/url_request/url_request_job_factory.h"
+
+namespace net {
+
+class URLRequestJob;
+
+class NET_EXPORT HttpProtocolHandler
+ : public URLRequestJobFactory::ProtocolHandler {
+ public:
+ HttpProtocolHandler();
+ URLRequestJob* MaybeCreateJob(
+ URLRequest* request,
+ NetworkDelegate* network_delegate) const override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(HttpProtocolHandler);
+};
+
+} // namespace net
+
+#endif // NET_URL_REQUEST_HTTP_PROTOCOL_HANDLER_H_
« no previous file with comments | « net/spdy/spdy_test_util_common.cc ('k') | net/url_request/http_protocol_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698