#include "components/download/database/download_db_conversions.h"
#include <utility>
#include "base/containers/span.h"
#include "base/notreached.h"
#include "base/pickle.h"
#include "base/time/time.h"
#include "components/download/public/common/download_features.h"
#include "services/network/public/mojom/fetch_api.mojom-shared.h"
namespace download {
namespace {
int64_t FromTimeToMilliseconds(base::Time time) { … }
base::Time FromMillisecondsToTime(int64_t time_ms) { … }
}
DownloadEntry DownloadDBConversions::DownloadEntryFromProto(
const download_pb::DownloadEntry& proto) { … }
download_pb::DownloadEntry DownloadDBConversions::DownloadEntryToProto(
const DownloadEntry& entry) { … }
DownloadSource DownloadDBConversions::DownloadSourceFromProto(
download_pb::DownloadSource download_source) { … }
download_pb::DownloadSource DownloadDBConversions::DownloadSourceToProto(
DownloadSource download_source) { … }
std::vector<DownloadEntry> DownloadDBConversions::DownloadEntriesFromProto(
const download_pb::DownloadEntries& proto) { … }
download_pb::DownloadEntries DownloadDBConversions::DownloadEntriesToProto(
const std::vector<DownloadEntry>& entries) { … }
download_pb::HttpRequestHeader DownloadDBConversions::HttpRequestHeaderToProto(
const std::pair<std::string, std::string>& header) { … }
std::pair<std::string, std::string>
DownloadDBConversions::HttpRequestHeaderFromProto(
const download_pb::HttpRequestHeader& proto) { … }
download_pb::InProgressInfo DownloadDBConversions::InProgressInfoToProto(
const InProgressInfo& in_progress_info) { … }
InProgressInfo DownloadDBConversions::InProgressInfoFromProto(
const download_pb::InProgressInfo& proto) { … }
UkmInfo DownloadDBConversions::UkmInfoFromProto(
const download_pb::UkmInfo& proto) { … }
download_pb::UkmInfo DownloadDBConversions::UkmInfoToProto(
const UkmInfo& info) { … }
DownloadInfo DownloadDBConversions::DownloadInfoFromProto(
const download_pb::DownloadInfo& proto) { … }
download_pb::DownloadInfo DownloadDBConversions::DownloadInfoToProto(
const DownloadInfo& info) { … }
DownloadDBEntry DownloadDBConversions::DownloadDBEntryFromProto(
const download_pb::DownloadDBEntry& proto) { … }
download_pb::DownloadDBEntry DownloadDBConversions::DownloadDBEntryToProto(
const DownloadDBEntry& info) { … }
DownloadDBEntry DownloadDBConversions::DownloadDBEntryFromDownloadEntry(
const DownloadEntry& entry) { … }
}