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

Unified Diff: net/url_request/url_request_filter.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_filter.cc
diff --git a/net/url_request/url_request_filter.cc b/net/url_request/url_request_filter.cc
index eaa3325fba38b1a13af28db2340b0902f99f1546..8b2ea9031ae580b52329c8c42272544045654851 100644
--- a/net/url_request/url_request_filter.cc
+++ b/net/url_request/url_request_filter.cc
@@ -27,6 +27,19 @@ class URLRequestFilterInterceptor : public URLRequestInterceptor {
return factory_(request, network_delegate, request->url().scheme());
}
+ URLRequestJob* MaybeInterceptResponse(
+ URLRequest* request,
+ NetworkDelegate* network_delegate) const override {
+ return NULL;
+ }
+
+ URLRequestJob* MaybeInterceptRedirect(
+ URLRequest* request,
+ NetworkDelegate* network_delegate,
+ const GURL& location) const override {
+ return NULL;
+ }
+
private:
URLRequest::ProtocolFactory* factory_;
@@ -157,6 +170,18 @@ URLRequestJob* URLRequestFilter::MaybeInterceptRequest(
return job;
}
+URLRequestJob* URLRequestFilter::MaybeInterceptResponse(
+ URLRequest* request,
+ NetworkDelegate* network_delegate) const {
+ return NULL;
+}
+URLRequestJob* URLRequestFilter::MaybeInterceptRedirect(
+ URLRequest* request,
+ NetworkDelegate* network_delegate,
+ const GURL& location) const {
+ return NULL;
+}
+
URLRequestFilter::URLRequestFilter() : hit_count_(0) {
URLRequestJobFactoryImpl::SetInterceptorForTesting(this);
}

Powered by Google App Engine
This is Rietveld 408576698