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

Side by Side Diff: content/public/common/media_metadata.cc

Issue 2676493004: Split MediaMetadata::MediaImage from Manifest::Icon (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « content/public/common/media_metadata.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "content/public/common/media_metadata.h" 5 #include "content/public/common/media_metadata.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 9
10 namespace content { 10 namespace content {
11 11
12 MediaMetadata::MediaImage::MediaImage() = default;
13
14 MediaMetadata::MediaImage::MediaImage(const MediaImage& other) = default;
15
16 MediaMetadata::MediaImage::~MediaImage() = default;
17
18 bool MediaMetadata::MediaImage::operator==(
19 const MediaMetadata::MediaImage& other) const {
20 return src == other.src && type == other.type && sizes == other.sizes;
21 }
22
12 MediaMetadata::MediaMetadata() = default; 23 MediaMetadata::MediaMetadata() = default;
13 24
14 MediaMetadata::~MediaMetadata() = default; 25 MediaMetadata::~MediaMetadata() = default;
15 26
16 MediaMetadata::MediaMetadata(const MediaMetadata& other) = default; 27 MediaMetadata::MediaMetadata(const MediaMetadata& other) = default;
17 28
18 bool MediaMetadata::operator==(const MediaMetadata& other) const { 29 bool MediaMetadata::operator==(const MediaMetadata& other) const {
19 return title == other.title && artist == other.artist && 30 return title == other.title && artist == other.artist &&
20 album == other.album && artwork == other.artwork; 31 album == other.album && artwork == other.artwork;
21 } 32 }
22 33
23 bool MediaMetadata::operator!=(const MediaMetadata& other) const { 34 bool MediaMetadata::operator!=(const MediaMetadata& other) const {
24 return !this->operator==(other); 35 return !this->operator==(other);
25 } 36 }
26 37
27 } // namespace content 38 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/media_metadata.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698