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

Unified Diff: android_webview/native/aw_contents.cc

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/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index 362a60325397ff675512df6673d47dfb06081071..fcd9cd2f5e572e91a354e275f24f14e5e6501022 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -8,6 +8,7 @@
#include "android_webview/native/aw_browser_dependency_factory.h"
#include "android_webview/native/aw_contents_container.h"
#include "android_webview/native/aw_web_contents_delegate.h"
+#include "android_webview/native/aw_contents_io_thread_client.h"
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
#include "base/bind.h"
@@ -104,6 +105,12 @@ void AwContents::DocumentHasImages(JNIEnv* env, jobject obj, jobject message) {
ScopedJavaLocalRef<jobject>(env, message)))));
}
+void AwContents::SetIoThreadClient(JNIEnv* env, jobject obj, jobject client) {
joth 2012/09/13 20:09:12 DCHECK(CurrentlyOn(UIThread)) --seems it would be
mkosiba (inactive) 2012/09/17 17:48:22 Done.
+ content::WebContents* web_contents = contents_container_->GetWebContents();
+ AwContentsIoThreadClient::Associate(
+ web_contents, ScopedJavaLocalRef<jobject>(env, client));
+}
+
static jint Init(JNIEnv* env,
jobject obj,
jobject web_contents_delegate,

Powered by Google App Engine
This is Rietveld 408576698