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

Unified Diff: net/url_request/url_request_intercepting_job_factory.cc

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/url_request/url_request_intercepting_job_factory.h ('k') | net/url_request/url_request_interceptor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_intercepting_job_factory.cc
diff --git a/net/url_request/url_request_intercepting_job_factory.cc b/net/url_request/url_request_intercepting_job_factory.cc
index 43789e1c27ce1bc2927a13687ba83ef714a41325..ea2d1f29d09970b6a3899a112b99205b3df9a218 100644
--- a/net/url_request/url_request_intercepting_job_factory.cc
+++ b/net/url_request/url_request_intercepting_job_factory.cc
@@ -32,6 +32,33 @@ MaybeCreateJobWithProtocolHandler(
scheme, request, network_delegate);
}
+URLRequestJob* URLRequestInterceptingJobFactory::MaybeInterceptRedirect(
+ URLRequest* request,
+ NetworkDelegate* network_delegate,
+ const GURL& location) const {
+ DCHECK(CalledOnValidThread());
+ URLRequestJob* job = interceptor_->MaybeInterceptRedirect(request,
+ network_delegate,
+ location);
+ if (job)
+ return job;
+ return job_factory_->MaybeInterceptRedirect(request,
+ network_delegate,
+ location);
+}
+
+URLRequestJob* URLRequestInterceptingJobFactory::MaybeInterceptResponse(
+ URLRequest* request,
+ NetworkDelegate* network_delegate) const {
+ DCHECK(CalledOnValidThread());
+ URLRequestJob* job = interceptor_->MaybeInterceptResponse(request,
+ network_delegate);
+ if (job)
+ return job;
+ return job_factory_->MaybeInterceptResponse(request,
+ network_delegate);
+}
+
bool URLRequestInterceptingJobFactory::IsHandledProtocol(
const std::string& scheme) const {
return job_factory_->IsHandledProtocol(scheme);
« no previous file with comments | « net/url_request/url_request_intercepting_job_factory.h ('k') | net/url_request/url_request_interceptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698