|
@CalledByNativeprivate AwWebResourceInterceptResponse shouldInterceptRequestFromNative(String url, boolean isMainFrame, boolean hasUserGesture, String method, String[] requestHeaderNames, String[] requestHeaderValues) { try { return new AwWebResourceInterceptResponse( shouldInterceptRequest(new AwContentsClient.AwWebResourceRequest(url, isMainFrame, hasUserGesture, method, requestHeaderNames, requestHeaderValues)), /*raisedException=*/false); } catch (Throwable e) { Log.e(TAG, "Client raised exception in shouldInterceptRequest. Re-throwing on UI thread."); AwThreadUtils.postToUiThreadLooper(() -> { Log.e(TAG, "The following exception was raised by shouldInterceptRequest:"); throw e; }); return new AwWebResourceInterceptResponse(null, /*raisedException=*/true); }}
|
|