| Index: android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegate.java
|
| diff --git a/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegate.java b/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegate.java
|
| index 14550284be0b2fe91d61cdfa1ede7e791a4a7c94..3c870b9be94bd01700b64241172a83e14803d05f 100644
|
| --- a/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegate.java
|
| +++ b/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegate.java
|
| @@ -8,6 +8,7 @@ import org.chromium.base.VisibleForTesting;
|
| import org.chromium.base.annotations.CalledByNative;
|
| import org.chromium.base.annotations.JNINamespace;
|
| import org.chromium.components.web_contents_delegate_android.WebContentsDelegateAndroid;
|
| +import org.chromium.content.browser.ContentVideoViewEmbedder;
|
|
|
| /**
|
| * WebView-specific WebContentsDelegate.
|
| @@ -46,4 +47,16 @@ public abstract class AwWebContentsDelegate extends WebContentsDelegateAndroid {
|
| // into onLoad{Started|Stopped}.
|
| @CalledByNative
|
| public abstract void loadingStateChanged();
|
| +
|
| + @Override
|
| + @CalledByNative
|
| + public abstract ContentVideoViewEmbedder getContentVideoViewEmbedder();
|
| +
|
| + /**
|
| + * Called when BrowserMediaPlayerManager wants to load a media resource.
|
| + * @param url the URL of media resource to load.
|
| + * @return true to prevent the resource from being loaded.
|
| + */
|
| + @CalledByNative
|
| + protected abstract boolean shouldBlockMediaRequest(String url);
|
| }
|
|
|