Index: content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java b/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java |
index 73aa41ce902e84547551dd476836384c00329398..9aacf7ef3e96dc757bed8cdaf2f2dd06f3d1d831 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java |
@@ -24,6 +24,7 @@ import org.chromium.content_public.browser.AccessibilitySnapshotNode; |
import org.chromium.content_public.browser.ContentBitmapCallback; |
import org.chromium.content_public.browser.ImageDownloadCallback; |
import org.chromium.content_public.browser.JavaScriptCallback; |
+import org.chromium.content_public.browser.MediaSessionDelegate; |
import org.chromium.content_public.browser.MessagePortService; |
import org.chromium.content_public.browser.NavigationController; |
import org.chromium.content_public.browser.WebContents; |
@@ -373,18 +374,8 @@ import java.util.UUID; |
} |
@Override |
- public void resumeMediaSession() { |
- nativeResumeMediaSession(mNativeWebContentsAndroid); |
- } |
- |
- @Override |
- public void suspendMediaSession() { |
- nativeSuspendMediaSession(mNativeWebContentsAndroid); |
- } |
- |
- @Override |
- public void stopMediaSession() { |
- nativeStopMediaSession(mNativeWebContentsAndroid); |
+ public void addMediaSessionDelegate(MediaSessionDelegate delegate) { |
+ nativeAddMediaSessionDelegate(mNativeWebContentsAndroid, delegate); |
} |
// root node can be null if parsing fails. |
@@ -547,9 +538,8 @@ import java.util.UUID; |
private native int nativeGetThemeColor(long nativeWebContentsAndroid); |
private native void nativeRequestAccessibilitySnapshot( |
long nativeWebContentsAndroid, AccessibilitySnapshotCallback callback); |
- private native void nativeResumeMediaSession(long nativeWebContentsAndroid); |
- private native void nativeSuspendMediaSession(long nativeWebContentsAndroid); |
- private native void nativeStopMediaSession(long nativeWebContentsAndroid); |
+ private native void nativeAddMediaSessionDelegate( |
+ long nativeWebContentsAndroid, MediaSessionDelegate delegate); |
private native void nativeGetContentBitmap(long nativeWebContentsAndroid, |
ContentBitmapCallback callback, Bitmap.Config config, float scale, |
float x, float y, float width, float height); |