| Index: android_webview/java/src/org/chromium/android_webview/AwContentsIoThreadClient.java
|
| diff --git a/android_webview/java/src/org/chromium/android_webview/AwContentsIoThreadClient.java b/android_webview/java/src/org/chromium/android_webview/AwContentsIoThreadClient.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ba1f91ee6d33ccc45c0ceaa4a3f71db26a831b98
|
| --- /dev/null
|
| +++ b/android_webview/java/src/org/chromium/android_webview/AwContentsIoThreadClient.java
|
| @@ -0,0 +1,22 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +package org.chromium.android_webview;
|
| +
|
| +import org.chromium.base.CalledByNative;
|
| +import org.chromium.base.JNINamespace;
|
| +
|
| +/**
|
| + * Delegate for handling callbacks from the IO thread on the IO thread.
|
| + *
|
| + * The shouldInterceptRequest method will be called on the IO thread.
|
| + * You should create a separate instance for every WebContents that requires the
|
| + * provided functionality.
|
| + */
|
| +@JNINamespace("android_webview")
|
| +public interface AwContentsIoThreadClient {
|
| + // Called on the IO thread.
|
| + @CalledByNative
|
| + InterceptedRequestData shouldInterceptRequest(String url);
|
| +}
|
|
|