| 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 "net/base/net_errors.h" | 7 #include "net/base/net_errors.h" |
| 8 #include "net/url_request/url_request_error_job.h" | 8 #include "net/url_request/url_request_error_job.h" |
| 9 #include "net/url_request/url_request_job_factory_impl.h" | 9 #include "net/url_request/url_request_job_factory_impl.h" |
| 10 #include "net/url_request/url_request_job_manager.h" | 10 #include "net/url_request/url_request_job_manager.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 net::URLRequestJob* AwURLRequestJobFactory::MaybeInterceptResponse( | 68 net::URLRequestJob* AwURLRequestJobFactory::MaybeInterceptResponse( |
| 69 net::URLRequest* request, | 69 net::URLRequest* request, |
| 70 net::NetworkDelegate* network_delegate) const { | 70 net::NetworkDelegate* network_delegate) const { |
| 71 return next_factory_->MaybeInterceptResponse(request, network_delegate); | 71 return next_factory_->MaybeInterceptResponse(request, network_delegate); |
| 72 } | 72 } |
| 73 | 73 |
| 74 bool AwURLRequestJobFactory::SetProtocolHandler( | 74 bool AwURLRequestJobFactory::SetProtocolHandler( |
| 75 const std::string& scheme, | 75 const std::string& scheme, |
| 76 ProtocolHandler* protocol_handler) { | 76 ProtocolHandler* protocol_handler) { |
| 77 return next_factory_->SetProtocolHandler(scheme, protocol_handler); | 77 return next_factory_->SetProtocolHandler(scheme, |
| 78 make_scoped_ptr(protocol_handler)); |
| 78 } | 79 } |
| 79 | 80 |
| 80 bool AwURLRequestJobFactory::IsSafeRedirectTarget(const GURL& location) const { | 81 bool AwURLRequestJobFactory::IsSafeRedirectTarget(const GURL& location) const { |
| 81 return next_factory_->IsSafeRedirectTarget(location); | 82 return next_factory_->IsSafeRedirectTarget(location); |
| 82 } | 83 } |
| 83 | 84 |
| 84 } // namespace android_webview | 85 } // namespace android_webview |
| OLD | NEW |