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

Unified Diff: android_webview/browser/aw_request_interceptor.cc

Issue 686343002: Add MaybeInterceptRedirect/Response to URLRequestInterceptor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added tests, removed DRP 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
Index: android_webview/browser/aw_request_interceptor.cc
diff --git a/android_webview/browser/aw_request_interceptor.cc b/android_webview/browser/aw_request_interceptor.cc
index 381a8ab03cdad3657424de878920657fd72bb17a..52673049eb09a8379d284c89076de74ed2a2a982 100644
--- a/android_webview/browser/aw_request_interceptor.cc
+++ b/android_webview/browser/aw_request_interceptor.cc
@@ -55,7 +55,7 @@ AwRequestInterceptor::QueryForAwWebResourceResponse(
net::URLRequestJob* AwRequestInterceptor::MaybeInterceptRequest(
net::URLRequest* request,
- net::NetworkDelegate* network_delegate) const {
+ net::NetworkDelegate* network_delegate) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
// See if we've already found out the aw_web_resource_response for this
@@ -81,4 +81,17 @@ net::URLRequestJob* AwRequestInterceptor::MaybeInterceptRequest(
aw_web_resource_response.Pass(), request, network_delegate);
}
+net::URLRequestJob* AwRequestInterceptor::MaybeInterceptRedirect(
+ net::URLRequest* request,
+ net::NetworkDelegate* network_delegate,
+ const GURL& location) {
+ return NULL;
+}
+
+net::URLRequestJob* AwRequestInterceptor::MaybeInterceptResponse(
+ net::URLRequest* request,
+ net::NetworkDelegate* network_delegate) {
+ return NULL;
+}
+
} // namespace android_webview

Powered by Google App Engine
This is Rietveld 408576698