| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_PUBLIC_COMMON_MEDIA_METADATA_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_MEDIA_METADATA_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_MEDIA_METADATA_H_ | 6 #define CONTENT_PUBLIC_COMMON_MEDIA_METADATA_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 12 #include "content/public/common/manifest.h" | 12 #include "content/public/common/manifest.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 // The MediaMetadata is a structure carrying information associated to a | 16 // The MediaMetadata is a structure carrying information associated to a |
| 17 // content::MediaSession. | 17 // content::MediaSession. |
| 18 struct CONTENT_EXPORT MediaMetadata { | 18 struct CONTENT_EXPORT MediaMetadata { |
| 19 // TODO(zqzhang): move |Manifest::Icon| to a common place. See | 19 // TODO(zqzhang): move |Manifest::Icon| to a common place. See |
| 20 // https://crbug.com/621859. | 20 // https://crbug.com/621859. |
| 21 using Artwork = Manifest::Icon; | 21 using MediaImage = Manifest::Icon; |
| 22 | 22 |
| 23 MediaMetadata(); | 23 MediaMetadata(); |
| 24 ~MediaMetadata(); | 24 ~MediaMetadata(); |
| 25 | 25 |
| 26 MediaMetadata(const MediaMetadata& other); | 26 MediaMetadata(const MediaMetadata& other); |
| 27 | 27 |
| 28 bool operator==(const MediaMetadata& other) const; | 28 bool operator==(const MediaMetadata& other) const; |
| 29 bool operator!=(const MediaMetadata& other) const; | 29 bool operator!=(const MediaMetadata& other) const; |
| 30 | 30 |
| 31 // Title associated to the MediaSession. | 31 // Title associated to the MediaSession. |
| 32 base::string16 title; | 32 base::string16 title; |
| 33 | 33 |
| 34 // Artist associated to the MediaSession. | 34 // Artist associated to the MediaSession. |
| 35 base::string16 artist; | 35 base::string16 artist; |
| 36 | 36 |
| 37 // Album associated to the MediaSession. | 37 // Album associated to the MediaSession. |
| 38 base::string16 album; | 38 base::string16 album; |
| 39 | 39 |
| 40 // Artwork associated to the MediaSession. | 40 // Artwork associated to the MediaSession. |
| 41 std::vector<Artwork> artwork; | 41 std::vector<MediaImage> artwork; |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 } // namespace content | 44 } // namespace content |
| 45 | 45 |
| 46 #endif // CONTENT_PUBLIC_COMMON_MEDIA_METADATA_H_ | 46 #endif // CONTENT_PUBLIC_COMMON_MEDIA_METADATA_H_ |
| OLD | NEW |