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 0c3a5ec3ea18b8568ec3c00228635e4ed047a1d2..2a64f4210502b29fe76e4a1f54b3003ceeab044f 100644 |
--- a/content/browser/android/content_view_core_impl.h |
+++ b/content/browser/android/content_view_core_impl.h |
@@ -56,6 +56,8 @@ class ContentViewCoreImpl : public ContentViewCore, |
virtual void LoadUrl(NavigationController::LoadURLParams& params) OVERRIDE; |
virtual jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj) OVERRIDE; |
virtual void ShowPastePopup(int x, int y) OVERRIDE; |
+ virtual void SetMediaAutoplayEnabled(bool is_enabled); |
+ void SetMediaAutoplayEnabled(JNIEnv* env, jobject obj, jboolean is_enabled); |
virtual unsigned int GetScaledContentTexture( |
float scale, |
gfx::Size* out_size) OVERRIDE; |
@@ -383,6 +385,9 @@ class ContentViewCoreImpl : public ContentViewCore, |
// will be sent to Renderer once it is ready. |
int device_orientation_; |
+ // Whether media autoplay is enabled for this content view. |
+ bool is_media_autoplay_enabled_; |
+ |
DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
}; |