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

Unified Diff: net/url_request/http_protocol_handler.cc

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/http_protocol_handler.cc
diff --git a/net/url_request/http_protocol_handler.cc b/net/url_request/http_protocol_handler.cc
new file mode 100644
index 0000000000000000000000000000000000000000..aed858b5dfc7e46bef3a97259c1161999ade4853
--- /dev/null
+++ b/net/url_request/http_protocol_handler.cc
@@ -0,0 +1,24 @@
+// 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.
+
+#include "net/url_request/http_protocol_handler.h"
+#include "net/url_request/url_request.h"
+#include "net/url_request/url_request_context.h"
+#include "net/url_request/url_request_error_job.h"
+#include "net/url_request/url_request_http_job.h"
+#include "net/url_request/url_request_redirect_job.h"
+#include "url/gurl.h"
+
+namespace net {
+
+HttpProtocolHandler::HttpProtocolHandler() {}
+
+URLRequestJob* HttpProtocolHandler::MaybeCreateJob(
+ URLRequest* request,
+ NetworkDelegate* network_delegate) const {
+ return URLRequestHttpJob::Factory(request, network_delegate,
mmenke 2016/04/21 20:58:01 I think we should get rid of URLRequestHttpJob::Fa
mgersh 2016/04/22 20:27:15 The reason why I didn't end up doing that is becau
mmenke 2016/04/22 20:41:04 I'd say it's best just to make URLRequestHttpJob's
mgersh 2016/04/27 16:13:52 Done (assuming you meant make it public), and adde
+ request->url().scheme());
+}
+
+} // namespace net

Powered by Google App Engine
This is Rietveld 408576698