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

Side by Side Diff: android_webview/browser/net/aw_url_request_job_factory.cc

Issue 2783343002: Remove URLRequestJobFactory::IsHandledURL. (Closed)
Patch Set: More fixes..... Created 3 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "android_webview/browser/net/aw_url_request_job_factory.h" 5 #include "android_webview/browser/net/aw_url_request_job_factory.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 #include "net/url_request/url_request_error_job.h" 10 #include "net/url_request/url_request_error_job.h"
(...skipping 17 matching lines...) Expand all
28 const std::string& scheme) const { 28 const std::string& scheme) const {
29 // This introduces a dependency on the URLRequestJobManager 29 // This introduces a dependency on the URLRequestJobManager
30 // implementation. The assumption is that if true is returned from this 30 // implementation. The assumption is that if true is returned from this
31 // method it is still valid to return NULL from the 31 // method it is still valid to return NULL from the
32 // MaybeCreateJobWithProtocolHandler method and in that case the 32 // MaybeCreateJobWithProtocolHandler method and in that case the
33 // URLRequestJobManager will try and create the URLRequestJob by using the 33 // URLRequestJobManager will try and create the URLRequestJob by using the
34 // set of built in handlers. 34 // set of built in handlers.
35 return true; 35 return true;
36 } 36 }
37 37
38 bool AwURLRequestJobFactory::IsHandledURL(const GURL& url) const {
39 return true;
40 }
41
42 URLRequestJob* AwURLRequestJobFactory::MaybeCreateJobWithProtocolHandler( 38 URLRequestJob* AwURLRequestJobFactory::MaybeCreateJobWithProtocolHandler(
43 const std::string& scheme, 39 const std::string& scheme,
44 URLRequest* request, 40 URLRequest* request,
45 NetworkDelegate* network_delegate) const { 41 NetworkDelegate* network_delegate) const {
46 URLRequestJob* job = next_factory_->MaybeCreateJobWithProtocolHandler( 42 URLRequestJob* job = next_factory_->MaybeCreateJobWithProtocolHandler(
47 scheme, request, network_delegate); 43 scheme, request, network_delegate);
48 44
49 if (job) 45 if (job)
50 return job; 46 return job;
51 47
(...skipping 25 matching lines...) Expand all
77 const std::string& scheme, 73 const std::string& scheme,
78 std::unique_ptr<ProtocolHandler> protocol_handler) { 74 std::unique_ptr<ProtocolHandler> protocol_handler) {
79 return next_factory_->SetProtocolHandler(scheme, std::move(protocol_handler)); 75 return next_factory_->SetProtocolHandler(scheme, std::move(protocol_handler));
80 } 76 }
81 77
82 bool AwURLRequestJobFactory::IsSafeRedirectTarget(const GURL& location) const { 78 bool AwURLRequestJobFactory::IsSafeRedirectTarget(const GURL& location) const {
83 return next_factory_->IsSafeRedirectTarget(location); 79 return next_factory_->IsSafeRedirectTarget(location);
84 } 80 }
85 81
86 } // namespace android_webview 82 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698