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

Unified Diff: content/browser/media/android/media_session.h

Issue 1458703003: Media Session API: use MediaMetadata in the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media_session_browser_side
Patch Set: remove dependencies from other CLs Created 4 years, 10 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/browser/media/android/media_session.h
diff --git a/content/browser/media/android/media_session.h b/content/browser/media/android/media_session.h
index 12711245bfbf4bdc3c70d347f6f1ef5fdae5df8e..3e12ff94dfb34182d92dcb2b8bc894bf141aa080 100644
--- a/content/browser/media/android/media_session.h
+++ b/content/browser/media/android/media_session.h
@@ -15,6 +15,7 @@
#include "content/common/content_export.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/browser/web_contents_user_data.h"
+#include "content/public/common/media_metadata.h"
class MediaSessionBrowserTest;
@@ -49,6 +50,11 @@ class CONTENT_EXPORT MediaSession
~MediaSession() override;
+ void setMetadata(const MediaMetadata& metadata) {
+ metadata_ = metadata;
+ }
+ const MediaMetadata& metadata() const { return metadata_; }
+
// Adds the given player to the current media session. Returns whether the
// player was successfully added. If it returns false, AddPlayer() should be
// called again later.
@@ -188,6 +194,8 @@ class CONTENT_EXPORT MediaSession
// multiply their volume with this multiplier to get the effective volume.
double volume_multiplier_;
+ MediaMetadata metadata_;
+
DISALLOW_COPY_AND_ASSIGN(MediaSession);
};

Powered by Google App Engine
This is Rietveld 408576698