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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "net/url_request/http_protocol_handler.h"
6 #include "net/url_request/url_request.h"
7 #include "net/url_request/url_request_context.h"
8 #include "net/url_request/url_request_error_job.h"
9 #include "net/url_request/url_request_http_job.h"
10 #include "net/url_request/url_request_redirect_job.h"
11 #include "url/gurl.h"
12
13 namespace net {
14
15 HttpProtocolHandler::HttpProtocolHandler() {}
16
17 URLRequestJob* HttpProtocolHandler::MaybeCreateJob(
18 URLRequest* request,
19 NetworkDelegate* network_delegate) const {
20 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
21 request->url().scheme());
22 }
23
24 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698