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

Unified Diff: net/url_request/url_request_intercepting_job_factory.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_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..9773c40e0932f2a6152d228cdfdaa3e89ea27593 100644
--- a/net/url_request/url_request_intercepting_job_factory.cc
+++ b/net/url_request/url_request_intercepting_job_factory.cc
@@ -32,6 +32,22 @@ MaybeCreateJobWithProtocolHandler(
scheme, request, network_delegate);
}
+net::URLRequestJob* URLRequestInterceptingJobFactory::MaybeInterceptResponse(
+ net::URLRequest* request,
+ net::NetworkDelegate* network_delegate) const {
+ return interceptor_->MaybeInterceptResponse(request,
+ network_delegate);
mmenke 2014/10/30 19:59:24 These aren't right. These should work just like M
bengr 2014/10/31 00:45:31 Right. Done.
+}
+
+net::URLRequestJob* URLRequestInterceptingJobFactory::MaybeInterceptRedirect(
+ net::URLRequest* request,
+ net::NetworkDelegate* network_delegate,
+ const GURL& location) const {
+ return interceptor_->MaybeInterceptRedirect(request,
+ network_delegate,
+ location);
+}
+
bool URLRequestInterceptingJobFactory::IsHandledProtocol(
const std::string& scheme) const {
return job_factory_->IsHandledProtocol(scheme);

Powered by Google App Engine
This is Rietveld 408576698