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

Unified Diff: net/url_request/url_request_job_manager.cc

Issue 686343002: Add MaybeInterceptRedirect/Response to URLRequestInterceptor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: net/url_request/url_request_job_manager.cc
diff --git a/net/url_request/url_request_job_manager.cc b/net/url_request/url_request_job_manager.cc
index 0fe557b14418b54ee437845aa9b481973f9e3adb..3376e199a51c7d8e2290ae477e5c1175eb224a56 100644
--- a/net/url_request/url_request_job_manager.cc
+++ b/net/url_request/url_request_job_manager.cc
@@ -128,7 +128,8 @@ URLRequestJob* URLRequestJobManager::MaybeInterceptRedirect(
if (job)
return job;
}
- return NULL;
+ return request->context()->job_factory()->MaybeInterceptRedirect(
+ request, network_delegate, location);
mmenke 2014/10/30 19:59:24 Ideally, these should ignore the LOAD_DISABLE_INTE
mmenke 2014/10/30 19:59:24 These should go before the old interceptors, for c
bengr 2014/10/31 00:45:31 Acknowledged.
bengr 2014/10/31 00:45:31 Done.
michaeln1 2014/10/31 00:47:10 Consistency with what? The old URLRequest::Interc
}
URLRequestJob* URLRequestJobManager::MaybeInterceptResponse(
@@ -154,7 +155,8 @@ URLRequestJob* URLRequestJobManager::MaybeInterceptResponse(
if (job)
return job;
}
- return NULL;
+ return request->context()->job_factory()->MaybeInterceptResponse(
+ request, network_delegate);
}
// static

Powered by Google App Engine
This is Rietveld 408576698