| OLD | NEW |
| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 68 } |
| 69 | 69 |
| 70 net::URLRequestJob* AwURLRequestJobFactory::MaybeInterceptResponse( | 70 net::URLRequestJob* AwURLRequestJobFactory::MaybeInterceptResponse( |
| 71 net::URLRequest* request, | 71 net::URLRequest* request, |
| 72 net::NetworkDelegate* network_delegate) const { | 72 net::NetworkDelegate* network_delegate) const { |
| 73 return next_factory_->MaybeInterceptResponse(request, network_delegate); | 73 return next_factory_->MaybeInterceptResponse(request, network_delegate); |
| 74 } | 74 } |
| 75 | 75 |
| 76 bool AwURLRequestJobFactory::SetProtocolHandler( | 76 bool AwURLRequestJobFactory::SetProtocolHandler( |
| 77 const std::string& scheme, | 77 const std::string& scheme, |
| 78 scoped_ptr<ProtocolHandler> protocol_handler) { | 78 std::unique_ptr<ProtocolHandler> protocol_handler) { |
| 79 return next_factory_->SetProtocolHandler(scheme, std::move(protocol_handler)); | 79 return next_factory_->SetProtocolHandler(scheme, std::move(protocol_handler)); |
| 80 } | 80 } |
| 81 | 81 |
| 82 bool AwURLRequestJobFactory::IsSafeRedirectTarget(const GURL& location) const { | 82 bool AwURLRequestJobFactory::IsSafeRedirectTarget(const GURL& location) const { |
| 83 return next_factory_->IsSafeRedirectTarget(location); | 83 return next_factory_->IsSafeRedirectTarget(location); |
| 84 } | 84 } |
| 85 | 85 |
| 86 } // namespace android_webview | 86 } // namespace android_webview |
| OLD | NEW |