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

Unified Diff: content/public/common/media_metadata.h

Issue 2015433003: Implement MediaMetadata artwork in content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed tests Created 4 years, 7 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/common/media_metadata.h
diff --git a/content/public/common/media_metadata.h b/content/public/common/media_metadata.h
index 3d7f13c59366caac20a29ed98b79c0d8a8478d58..c0b48431b586dff45d63a6b9ec552187eab050d4 100644
--- a/content/public/common/media_metadata.h
+++ b/content/public/common/media_metadata.h
@@ -5,14 +5,20 @@
#ifndef CONTENT_PUBLIC_COMMON_MEDIA_METADATA_H_
#define CONTENT_PUBLIC_COMMON_MEDIA_METADATA_H_
+#include <vector>
+
#include "base/strings/string16.h"
#include "content/common/content_export.h"
+#include "content/public/common/manifest.h"
namespace content {
// The MediaMetadata is a structure carrying information associated to a
// content::MediaSession.
struct CONTENT_EXPORT MediaMetadata {
+
+ using Artwork = Manifest::Icon;
+
MediaMetadata();
~MediaMetadata();
@@ -28,6 +34,8 @@ struct CONTENT_EXPORT MediaMetadata {
// Album associated to the MediaSession.
base::string16 album;
+ std::vector<Artwork> artworks;
+
// Maximum length for all the strings inside the MediaMetadata when it is sent
// over IPC. The renderer process should truncate the strings before sending
// the MediaMetadata and the browser process must do the same when receiving

Powered by Google App Engine
This is Rietveld 408576698