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

Unified Diff: android_webview/native/intercepted_request_data_impl.cc

Issue 12377051: [android_webview] Don't intercept resource and asset URLRequests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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: android_webview/native/intercepted_request_data_impl.cc
diff --git a/android_webview/native/intercepted_request_data_impl.cc b/android_webview/native/intercepted_request_data_impl.cc
index 675d5234394c5e1f668722771959cad7145b45e9..dc5fe225b2f4e1be2447a176d320ccbb2c76f6fb 100644
--- a/android_webview/native/intercepted_request_data_impl.cc
+++ b/android_webview/native/intercepted_request_data_impl.cc
@@ -29,10 +29,15 @@ class StreamReaderJobDelegateImpl :
virtual scoped_ptr<InputStream> OpenInputStream(
JNIEnv* env,
- net::URLRequest* request) OVERRIDE {
+ const GURL& url) OVERRIDE {
return intercepted_request_data_impl_->GetInputStream(env).Pass();
}
+ virtual void OnInputStreamOpenFailed(net::URLRequest* request,
+ bool* restart) OVERRIDE {
+ *restart = false;
+ }
+
virtual bool GetMimeType(JNIEnv* env,
net::URLRequest* request,
android_webview::InputStream* stream,
« no previous file with comments | « android_webview/native/android_protocol_handler.cc ('k') | android_webview/native/net_init_native_callback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698