#include "chrome/browser/download/download_shelf_controller.h"
#include <utility>
#include "chrome/browser/content_index/content_index_provider_impl.h"
#include "chrome/browser/download/download_shelf.h"
#include "chrome/browser/download/offline_item_model_manager.h"
#include "chrome/browser/download/offline_item_model_manager_factory.h"
#include "chrome/browser/download/offline_item_utils.h"
#include "chrome/browser/offline_items_collection/offline_content_aggregator_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_key.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_window.h"
#include "components/offline_items_collection/core/offline_content_aggregator.h"
#include "components/offline_items_collection/core/offline_item.h"
OfflineItemState;
OfflineContentAggregator;
DownloadShelfController::DownloadShelfController(Profile* profile)
: … { … }
DownloadShelfController::~DownloadShelfController() = default;
void DownloadShelfController::OnItemsAdded(
const OfflineContentProvider::OfflineItemList& items) { … }
void DownloadShelfController::OnItemRemoved(const ContentId& id) { … }
void DownloadShelfController::OnItemUpdated(
const OfflineItem& item,
const std::optional<UpdateDelta>& update_delta) { … }
void DownloadShelfController::OnContentProviderGoingDown() { … }
void DownloadShelfController::OnNewOfflineItemReady(
DownloadUIModel::DownloadUIModelPtr model) { … }