blob: c5eb929a604108fffe55f6ed7ba76fc2649e44b3 [file] [log] [blame]
// Copyright 2017 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 "components/download/public/download_metadata.h"
namespace download {
CompletionInfo::CompletionInfo(const base::FilePath& path,
uint64_t bytes_downloaded)
: path(path), bytes_downloaded(bytes_downloaded) {}
CompletionInfo::CompletionInfo(const CompletionInfo& other) = default;
CompletionInfo::~CompletionInfo() = default;
bool CompletionInfo::operator==(const CompletionInfo& other) const {
return path == other.path && bytes_downloaded == other.bytes_downloaded;
}
DownloadMetaData::DownloadMetaData() = default;
DownloadMetaData::DownloadMetaData(const DownloadMetaData& other) = default;
bool DownloadMetaData::operator==(const DownloadMetaData& other) const {
return guid == other.guid && completion_info == other.completion_info;
}
DownloadMetaData::~DownloadMetaData() = default;
} // namespace download