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

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

Issue 10702083: Add ContentViewDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nits 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/AwContents.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
index 7addd038ec8be4eae77feebebef2ad75f8206788..9c4e72d4f077d2ea9402a7f61d613796d281e332 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -26,6 +26,7 @@ public class AwContents {
private int mNativeAwContents;
private ContentViewCore mContentViewCore;
private AwContentsClient mContentsClient;
+ private AwContentsIoThreadClient mIoThreadClient;
private static final class DestroyRunnable implements Runnable {
private int mNativeAwContents;
@@ -72,6 +73,11 @@ public class AwContents {
return mContentViewCore;
}
+ public void setIoThreadClient(AwContentsIoThreadClient ioThreadClient) {
+ mIoThreadClient = ioThreadClient;
+ nativeSetIoThreadClient(mNativeAwContents, mIoThreadClient);
+ }
+
public void destroy() {
if (mContentViewCore != null) {
mContentViewCore.destroy();
@@ -117,4 +123,7 @@ public class AwContents {
private native int nativeGetWebContents(int nativeAwContents);
private native void nativeDocumentHasImages(int nativeAwContents, Message message);
+
+ private native void nativeSetIoThreadClient(int nativeAwContents,
+ AwContentsIoThreadClient ioThreadClient);
}

Powered by Google App Engine
This is Rietveld 408576698