| Index: android_webview/native/aw_contents_io_thread_client_impl.cc
|
| diff --git a/android_webview/native/aw_contents_io_thread_client_impl.cc b/android_webview/native/aw_contents_io_thread_client_impl.cc
|
| index efcf7d9a6488191d3e78e26b1c8b5cc7077cb19a..e79836456facd1ccd853077d8094f7eb786e6538 100644
|
| --- a/android_webview/native/aw_contents_io_thread_client_impl.cc
|
| +++ b/android_webview/native/aw_contents_io_thread_client_impl.cc
|
| @@ -194,6 +194,26 @@ AwContentsIoThreadClientImpl::ShouldInterceptRequest(
|
| new InterceptedRequestData(ret));
|
| }
|
|
|
| +bool AwContentsIoThreadClientImpl::ShouldBlockContentUrls() const {
|
| + DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| + if (java_object_.is_null())
|
| + return false;
|
| +
|
| + JNIEnv* env = AttachCurrentThread();
|
| + return Java_AwContentsIoThreadClient_shouldBlockContentUrls(
|
| + env, java_object_.obj());
|
| +}
|
| +
|
| +bool AwContentsIoThreadClientImpl::ShouldBlockFileUrls() const {
|
| + DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| + if (java_object_.is_null())
|
| + return false;
|
| +
|
| + JNIEnv* env = AttachCurrentThread();
|
| + return Java_AwContentsIoThreadClient_shouldBlockFileUrls(
|
| + env, java_object_.obj());
|
| +}
|
| +
|
| bool AwContentsIoThreadClientImpl::ShouldBlockNetworkLoads() const {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| if (java_object_.is_null())
|
|
|