#include "components/download/internal/background_service/debugging_client.h"
#include "base/functional/bind.h"
#include "base/task/sequenced_task_runner.h"
#include "components/download/public/background_service/download_metadata.h"
#include "services/network/public/cpp/resource_request_body.h"
namespace download {
void DebuggingClient::OnServiceInitialized(
bool state_lost,
const std::vector<DownloadMetaData>& downloads) { … }
void DebuggingClient::OnServiceUnavailable() { … }
void DebuggingClient::OnDownloadStarted(
const std::string& guid,
const std::vector<GURL>& url_chain,
const scoped_refptr<const net::HttpResponseHeaders>& headers) { … }
void DebuggingClient::OnDownloadUpdated(const std::string& guid,
uint64_t bytes_uploaded,
uint64_t bytes_downloaded) { … }
void DebuggingClient::OnDownloadFailed(const std::string& guid,
const CompletionInfo& completion_info,
FailureReason reason) { … }
void DebuggingClient::OnDownloadSucceeded(
const std::string& guid,
const CompletionInfo& completion_info) { … }
bool DebuggingClient::CanServiceRemoveDownloadedFile(const std::string& guid,
bool force_delete) { … }
void DebuggingClient::GetUploadData(const std::string& guid,
GetUploadDataCallback callback) { … }
}