#include "components/history/content/browser/download_conversions.h"
#include "base/check_op.h"
#include "base/notreached.h"
#include "components/download/public/common/download_danger_type.h"
#include "components/history/core/browser/download_constants.h"
namespace history {
download::DownloadItem::DownloadState ToContentDownloadState(
DownloadState state) { … }
DownloadState ToHistoryDownloadState(
download::DownloadItem::DownloadState state) { … }
download::DownloadDangerType ToContentDownloadDangerType(
DownloadDangerType danger_type) { … }
DownloadDangerType ToHistoryDownloadDangerType(
download::DownloadDangerType danger_type) { … }
download::DownloadInterruptReason ToContentDownloadInterruptReason(
DownloadInterruptReason interrupt_reason) { … }
DownloadInterruptReason ToHistoryDownloadInterruptReason(
download::DownloadInterruptReason interrupt_reason) { … }
uint32_t ToContentDownloadId(DownloadId id) { … }
DownloadId ToHistoryDownloadId(uint32_t id) { … }
std::vector<download::DownloadItem::ReceivedSlice> ToContentReceivedSlices(
const std::vector<DownloadSliceInfo>& slice_infos) { … }
std::vector<DownloadSliceInfo> GetHistoryDownloadSliceInfos(
const download::DownloadItem& item) { … }
}