#ifndef COMPONENTS_DOWNLOAD_DATABASE_IN_PROGRESS_DOWNLOAD_ENTRY_H_
#define COMPONENTS_DOWNLOAD_DATABASE_IN_PROGRESS_DOWNLOAD_ENTRY_H_
#include <string>
#include "components/download/public/common/download_source.h"
#include "components/download/public/common/download_url_parameters.h"
#include "services/metrics/public/cpp/ukm_source_id.h"
namespace download {
struct DownloadEntry {
public:
DownloadEntry();
DownloadEntry(const DownloadEntry& other);
DownloadEntry(
const std::string& guid,
const std::string& request_origin,
DownloadSource download_source,
bool fetch_error_body,
const DownloadUrlParameters::RequestHeadersType& request_headers,
int64_t ukm_id);
~DownloadEntry();
friend bool operator==(const DownloadEntry&, const DownloadEntry&) = default;
std::string guid;
std::string request_origin;
DownloadSource download_source = DownloadSource::UNKNOWN;
uint64_t ukm_download_id = 0;
int64_t bytes_wasted = 0;
bool fetch_error_body = false;
DownloadUrlParameters::RequestHeadersType request_headers;
};
}
#endif