#ifndef COMPONENTS_HISTORY_CONTENT_BROWSER_DOWNLOAD_CONVERSIONS_H_
#define COMPONENTS_HISTORY_CONTENT_BROWSER_DOWNLOAD_CONVERSIONS_H_
#include <stdint.h>
#include "components/download/public/common/download_danger_type.h"
#include "components/download/public/common/download_interrupt_reasons.h"
#include "components/download/public/common/download_item.h"
#include "components/history/core/browser/download_slice_info.h"
#include "components/history/core/browser/download_types.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);
}
#endif