Chromium Code Reviews| Index: content/browser/loader/resource_dispatcher_host_unittest.cc |
| diff --git a/content/browser/loader/resource_dispatcher_host_unittest.cc b/content/browser/loader/resource_dispatcher_host_unittest.cc |
| index d600a278b2c5753bfe07a887e3fa0c4d9826b822..d18facde88acb42b2e143e08054c638f9818530c 100644 |
| --- a/content/browser/loader/resource_dispatcher_host_unittest.cc |
| +++ b/content/browser/loader/resource_dispatcher_host_unittest.cc |
| @@ -492,6 +492,15 @@ class TestURLRequestJobFactory : public net::URLRequestJobFactory { |
| net::URLRequest* request, |
| net::NetworkDelegate* network_delegate) const override; |
| + net::URLRequestJob* MaybeInterceptRedirect( |
| + net::URLRequest* request, |
| + net::NetworkDelegate* network_delegate, |
| + const GURL& location) const override; |
|
michaeln
2014/11/06 21:07:46
maybe inline these one-liners to return nullptr
bengr
2014/11/06 23:58:01
Acknowledged.
|
| + |
| + net::URLRequestJob* MaybeInterceptResponse( |
| + net::URLRequest* request, |
| + net::NetworkDelegate* network_delegate) const override; |
| + |
| bool IsHandledProtocol(const std::string& scheme) const override { |
| return supported_schemes_.count(scheme) > 0; |
| } |
| @@ -3000,4 +3009,17 @@ net::URLRequestJob* TestURLRequestJobFactory::MaybeCreateJobWithProtocolHandler( |
| } |
| } |
| +net::URLRequestJob* TestURLRequestJobFactory::MaybeInterceptRedirect( |
| + net::URLRequest* request, |
| + net::NetworkDelegate* network_delegate, |
| + const GURL& location) const { |
| + return nullptr; |
| +} |
| + |
| +net::URLRequestJob* TestURLRequestJobFactory::MaybeInterceptResponse( |
| + net::URLRequest* request, |
| + net::NetworkDelegate* network_delegate) const { |
| + return nullptr; |
| +} |
| + |
| } // namespace content |