| 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 #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 |
| OLD | NEW |