#ifndef COMPONENTS_DOWNLOAD_PUBLIC_COMMON_DOWNLOAD_INTERRUPT_REASONS_UTILS_H_
#define COMPONENTS_DOWNLOAD_PUBLIC_COMMON_DOWNLOAD_INTERRUPT_REASONS_UTILS_H_
#include "base/files/file.h"
#include "components/download/public/common/download_export.h"
#include "components/download/public/common/download_interrupt_reasons.h"
#include "components/download/public/common/download_stream.mojom.h"
#include "net/base/net_errors.h"
namespace download {
enum DownloadInterruptSource { … };
DownloadInterruptReason COMPONENTS_DOWNLOAD_EXPORT
ConvertNetErrorToInterruptReason(net::Error file_error,
DownloadInterruptSource source);
DownloadInterruptReason COMPONENTS_DOWNLOAD_EXPORT
ConvertFileErrorToInterruptReason(base::File::Error file_error);
DownloadInterruptReason COMPONENTS_DOWNLOAD_EXPORT
ConvertMojoNetworkRequestStatusToInterruptReason(
mojom::NetworkRequestStatus status);
}
#endif