Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2639)

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContentsIoThreadClient.java

Issue 10702083: Add ContentViewDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
+}

Powered by Google App Engine
This is Rietveld 408576698