| 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);
|
| };
|
|
|
|
|