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

Unified Diff: content/public/android/java/src/org/chromium/content_public/browser/WebContents.java

Issue 2439483003: Link MediaSessionTabHelper with native MediaSession [CL is going to be split] (Closed)
Patch Set: addressed comments Created 4 years, 2 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: content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
diff --git a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
index fce0c95cb94d940e84e1b6b57e67e9306d1de840..8f737557863706fa3ed09301d2a23b0f3b0030ed 100644
--- a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
+++ b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java
@@ -307,19 +307,11 @@ public interface WebContents extends Parcelable {
void requestAccessibilitySnapshot(AccessibilitySnapshotCallback callback);
/**
- * Resumes the current media session.
+ * Add a {@link MediaSessionDelegate} to the native {@link MediaSession} of this
+ * {@link WebContents} object.
+ * @param delegate The delegate to be added to the native {@link MediaSession}
*/
- void resumeMediaSession();
-
- /**
- * Suspends the current media session.
- */
- void suspendMediaSession();
-
- /**
- * Stops the current media session.
- */
- void stopMediaSession();
+ void addMediaSessionDelegate(MediaSessionDelegate delegate);
/**
* Add an observer to the WebContents

Powered by Google App Engine
This is Rietveld 408576698