Home | History | Annotate | Download | only in support_lib_boundary
      1 // Copyright 2018 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 package org.chromium.support_lib_boundary;
      6 
      7 import android.webkit.WebResourceRequest;
      8 import android.webkit.WebResourceResponse;
      9 import android.webkit.WebView;
     10 
     11 import java.lang.reflect.InvocationHandler;
     12 
     13 /**
     14  * Boundary interface for WebViewClientCompat.
     15  */
     16 public interface WebViewClientBoundaryInterface {
     17     void onPageCommitVisible(WebView view, String url);
     18     void onReceivedError(WebView view, WebResourceRequest request,
     19             /* WebResourceError */ InvocationHandler error);
     20     void onReceivedHttpError(
     21             WebView view, WebResourceRequest request, WebResourceResponse errorResponse);
     22     void onSafeBrowsingHit(WebView view, WebResourceRequest request, int threatType,
     23             /* SafeBrowsingResponse */ InvocationHandler callback);
     24     boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request);
     25 }
     26