blob: 7aff157597fe7a74e37245ca0ee6107b5a814269 [file]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/media_session/public/cpp/media_metadata.h"
#include "services/media_session/public/cpp/media_image.h"
namespace media_session {
MediaMetadata::MediaMetadata() = default;
MediaMetadata::~MediaMetadata() = default;
MediaMetadata::MediaMetadata(const MediaMetadata& other) = default;
bool MediaMetadata::operator==(const MediaMetadata& other) const {
return title == other.title && artist == other.artist &&
album == other.album && source_title == other.source_title;
}
bool MediaMetadata::operator!=(const MediaMetadata& other) const {
return !(*this == other);
}
bool MediaMetadata::IsEmpty() const {
return title.empty() && artist.empty() && album.empty() &&
source_title.empty();
}
} // namespace media_session