#include "components/upload_list/upload_list.h"
#include <algorithm>
#include <iterator>
#include <utility>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/notreached.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
namespace {
constexpr base::TaskTraits kLoadingTaskTraits = …;
}
UploadList::UploadInfo::UploadInfo(const std::string& upload_id,
const base::Time& upload_time,
const std::string& local_id,
const base::Time& capture_time,
State state)
: … { … }
UploadList::UploadInfo::UploadInfo(const std::string& local_id,
const base::Time& capture_time,
State state,
int64_t file_size)
: … { … }
UploadList::UploadInfo::UploadInfo(const std::string& upload_id,
const base::Time& upload_time)
: … { … }
UploadList::UploadInfo::UploadInfo(const UploadInfo& upload_info) = default;
UploadList::UploadInfo::~UploadInfo() = default;
UploadList::UploadList() = default;
UploadList::~UploadList() = default;
void UploadList::Load(base::OnceClosure callback) { … }
void UploadList::Clear(const base::Time& begin,
const base::Time& end,
base::OnceClosure callback) { … }
void UploadList::CancelLoadCallback() { … }
void UploadList::RequestSingleUploadAsync(const std::string& local_id) { … }
std::vector<const UploadList::UploadInfo*> UploadList::GetUploads(
size_t max_count) const { … }
void UploadList::OnLoadComplete(
std::vector<std::unique_ptr<UploadInfo>> uploads) { … }
void UploadList::OnClearComplete() { … }