#include "components/offline_pages/core/background/offliner_client.h"
#include <utility>
#include "base/functional/bind.h"
#include "components/offline_pages/core/background/save_page_request.h"
namespace offline_pages {
OfflinerClient::OfflinerClient(
std::unique_ptr<Offliner> offliner,
const Offliner::ProgressCallback& progress_callback)
: … { … }
OfflinerClient::~OfflinerClient() = default;
bool OfflinerClient::LoadAndSave(const SavePageRequest& request,
base::TimeDelta timeout,
CompleteCallback complete_callback) { … }
void OfflinerClient::Stop(Offliner::RequestStatus status) { … }
void OfflinerClient::HandleWatchdogTimeout() { … }
void OfflinerClient::CancelComplete(Offliner::RequestStatus cancel_reason,
const SavePageRequest& request) { … }
void OfflinerClient::OfflinerComplete(const SavePageRequest& request,
Offliner::RequestStatus status) { … }
void OfflinerClient::Finish(Offliner::RequestStatus status) { … }
}