Index: content/browser/android/content_view_core_impl.h |
diff --git a/content/browser/android/content_view_core_impl.h b/content/browser/android/content_view_core_impl.h |
index 796c148510fea8180edcea4114e4eb3804c4743c..704725a3f4d5cc0d549b1cccb6ae8cd8e12c0594 100644 |
--- a/content/browser/android/content_view_core_impl.h |
+++ b/content/browser/android/content_view_core_impl.h |
@@ -14,6 +14,7 @@ |
#include "base/memory/scoped_ptr.h" |
#include "base/process.h" |
#include "content/browser/renderer_host/render_widget_host_view_android.h" |
+#include "content/browser/web_contents/web_contents_impl.h" |
#include "content/public/browser/android/content_view_core.h" |
#include "content/public/browser/notification_observer.h" |
#include "googleurl/src/gurl.h" |
@@ -33,6 +34,8 @@ class ContentViewCoreImpl : public ContentViewCore, |
ContentViewCoreImpl(JNIEnv* env, |
jobject obj, |
WebContents* web_contents); |
+ |
+ // ContentViewCore overrides |
virtual void Destroy(JNIEnv* env, jobject obj) OVERRIDE; |
// -------------------------------------------------------------------------- |
@@ -108,6 +111,12 @@ class ContentViewCoreImpl : public ContentViewCore, |
jboolean NeedsReload(JNIEnv* env, jobject obj); |
void ClearHistory(JNIEnv* env, jobject obj); |
void SetClient(JNIEnv* env, jobject obj, jobject jclient); |
+ void AddJavascriptInterface(JNIEnv* env, |
+ jobject obj, |
+ jobject object, |
+ jstring name, |
+ jboolean allow_inherited_methods); |
+ void RemoveJavascriptInterface(JNIEnv* env, jobject obj, jstring name); |
// -------------------------------------------------------------------------- |
// Public methods that call to Java via JNI |
@@ -186,7 +195,7 @@ class ContentViewCoreImpl : public ContentViewCore, |
// Reference to the current WebContents used to determine how and what to |
// display in the ContentViewCore. |
- WebContents* web_contents_; |
+ WebContentsImpl* web_contents_; |
// We only set this to be the delegate of the web_contents if we own it. |
scoped_ptr<ContentViewClient> content_view_client_; |