| Index: android_webview/java/src/org/chromium/android_webview/AwContentsClient.java
|
| diff --git a/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java b/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java
|
| index e5ce0273e995ae5e8bd6ed314a7e9244391d89fa..5a3f753cbb049308723b8b21a752523039fd4146 100644
|
| --- a/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java
|
| +++ b/android_webview/java/src/org/chromium/android_webview/AwContentsClient.java
|
| @@ -23,6 +23,7 @@ import org.chromium.content.browser.WebContentsObserverAndroid;
|
| import org.chromium.net.NetError;
|
|
|
| import java.security.Principal;
|
| +import java.util.Map;
|
|
|
| /**
|
| * Base-class that an AwContents embedder derives from to receive callbacks.
|
| @@ -145,13 +146,30 @@ public abstract class AwContentsClient {
|
| public boolean capture;
|
| }
|
|
|
| + /**
|
| + * Parameters for the {@link AwContentsClient#shouldInterceptRequest} method.
|
| + */
|
| + public static class ShouldInterceptRequestParams {
|
| + // Url of the request.
|
| + public String url;
|
| + // Is this for the main frame or a child iframe?
|
| + public boolean isMainFrame;
|
| + // Was a gesture associated with the request? Don't trust can easily be spoofed.
|
| + public boolean hasUserGesture;
|
| + // Method used (GET/POST/OPTIONS)
|
| + public String method;
|
| + // Headers that would have been sent to server.
|
| + public Map<String, String> headers;
|
| + }
|
| +
|
| public abstract void getVisitedHistory(ValueCallback<String[]> callback);
|
|
|
| public abstract void doUpdateVisitedHistory(String url, boolean isReload);
|
|
|
| public abstract void onProgressChanged(int progress);
|
|
|
| - public abstract InterceptedRequestData shouldInterceptRequest(String url);
|
| + public abstract InterceptedRequestData shouldInterceptRequest(
|
| + ShouldInterceptRequestParams params);
|
|
|
| public abstract boolean shouldOverrideKeyEvent(KeyEvent event);
|
|
|
|
|