#include "components/download/public/common/simple_download_manager_coordinator.h"
#include <utility>
#include "base/memory/raw_ptr.h"
#include "base/observer_list.h"
#include "components/download/public/common/all_download_event_notifier.h"
#include "components/download/public/common/download_item.h"
#include "components/download/public/common/download_stats.h"
#include "components/download/public/common/simple_download_manager.h"
namespace download {
SimpleDownloadManagerCoordinator::SimpleDownloadManagerCoordinator(
const DownloadWhenFullManagerStartsCallBack&
download_when_full_manager_starts_cb)
: … { … }
SimpleDownloadManagerCoordinator::~SimpleDownloadManagerCoordinator() { … }
void SimpleDownloadManagerCoordinator::SetSimpleDownloadManager(
SimpleDownloadManager* simple_download_manager,
bool manages_all_history_downloads) { … }
void SimpleDownloadManagerCoordinator::AddObserver(Observer* observer) { … }
void SimpleDownloadManagerCoordinator::RemoveObserver(Observer* observer) { … }
void SimpleDownloadManagerCoordinator::DownloadUrl(
std::unique_ptr<DownloadUrlParameters> parameters) { … }
void SimpleDownloadManagerCoordinator::GetAllDownloads(
std::vector<raw_ptr<DownloadItem, VectorExperimental>>* downloads) { … }
DownloadItem* SimpleDownloadManagerCoordinator::GetDownloadByGuid(
const std::string& guid) { … }
void SimpleDownloadManagerCoordinator::OnDownloadsInitialized() { … }
void SimpleDownloadManagerCoordinator::OnManagerGoingDown() { … }
void SimpleDownloadManagerCoordinator::OnDownloadCreated(DownloadItem* item) { … }
AllDownloadEventNotifier* SimpleDownloadManagerCoordinator::GetNotifier() { … }
void SimpleDownloadManagerCoordinator::CheckForExternallyRemovedDownloads() { … }
}