Don't crash on InputStream exceptions in the android_webview.
commit17fd3aa21505ac883ba96d4118e80c696ea160a2
authormkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 29 Jul 2014 16:35:42 +0000 (29 16:35 +0000)
committermkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 29 Jul 2014 16:35:42 +0000 (29 16:35 +0000)
tree3c6c70a43a1985567bd7b849fbbfd21437eaf3b9
parent1daee1d9700f2e4cd9af5808a44b04b539540fa7
Don't crash on InputStream exceptions in the android_webview.

The InputStream methods can, under normal operation, throw an IOException.
If such a stream is being read by the WebView it will crash. This change
addresses that by introducing a wrapper class that deals with the exceptions.

BUG=157880

Review URL: https://codereview.chromium.org/430443003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286214 0039d316-1c4b-4281-b951-d872f2087c98
android_webview/java/src/org/chromium/android_webview/InputStreamUtil.java [new file with mode: 0644]
android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldInterceptRequestTest.java
android_webview/native/input_stream_impl.cc
android_webview/native/input_stream_unittest.cc
android_webview/native/webview_native.gyp
android_webview/unittestjava/src/org/chromium/android_webview/unittest/InputStreamUnittest.java