#include "components/update_client/url_fetcher_downloader.h"
#include <stdint.h>
#include <utility>
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/thread_pool.h"
#include "components/update_client/network.h"
#include "components/update_client/task_traits.h"
#include "components/update_client/update_client_errors.h"
#include "components/update_client/utils.h"
#include "url/gurl.h"
namespace update_client {
UrlFetcherDownloader::UrlFetcherDownloader(
scoped_refptr<CrxDownloader> successor,
scoped_refptr<NetworkFetcherFactory> network_fetcher_factory)
: … { … }
UrlFetcherDownloader::~UrlFetcherDownloader() = default;
base::OnceClosure UrlFetcherDownloader::DoStartDownload(const GURL& url) { … }
void UrlFetcherDownloader::CreateDownloadDir() { … }
void UrlFetcherDownloader::StartURLFetch(const GURL& url) { … }
void UrlFetcherDownloader::Cancel() { … }
void UrlFetcherDownloader::OnNetworkFetcherComplete(int net_error,
int64_t content_size) { … }
void UrlFetcherDownloader::OnResponseStarted(int response_code,
int64_t content_length) { … }
void UrlFetcherDownloader::OnDownloadProgress(int64_t current) { … }
}