blob: a5fc68185e4ea641846d5210fa7eba039014cf26 [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/download/download_display.h"
#include <tuple>
bool DownloadDisplay::ProgressInfo::operator==(
const ProgressInfo& other) const {
return std::tie(progress_percentage, download_count, progress_certain) ==
std::tie(other.progress_percentage, other.download_count,
other.progress_certain);
}
bool DownloadDisplay::ProgressInfo::operator!=(
const ProgressInfo& other) const {
return !operator==(other);
}
bool DownloadDisplay::ProgressInfo::FieldsEqualExceptPercentage(
const ProgressInfo& other) const {
return std::tie(download_count, progress_certain) ==
std::tie(other.download_count, other.progress_certain);
}