blob: 0bb3a60e83a04d9d624d2b7b823ad76453f2878f [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/downloader/in_progress/download_entry.h"
namespace download {
DownloadEntry::DownloadEntry() = default;
DownloadEntry::DownloadEntry(const DownloadEntry& other) = default;
DownloadEntry::DownloadEntry(const std::string& guid,
const std::string& request_origin,
DownloadSource download_source)
: guid(guid),
request_origin(request_origin),
download_source(download_source) {}
DownloadEntry::~DownloadEntry() = default;
bool DownloadEntry::operator==(const DownloadEntry& other) const {
return guid == other.guid && request_origin == other.request_origin &&
download_source == other.download_source;
}
} // namespace download