#include "chrome/browser/ui/webui/download_internals/download_internals_ui_message_handler.h"
#include "base/functional/bind.h"
#include "base/uuid.h"
#include "base/values.h"
#include "chrome/browser/download/background_download_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_key.h"
#include "components/download/public/background_service/background_download_service.h"
#include "components/download/public/background_service/download_params.h"
#include "components/policy/content/policy_blocklist_service.h"
#include "content/public/browser/web_ui.h"
#include "net/traffic_annotation/network_traffic_annotation.h"
URLBlocklist;
namespace download_internals {
DownloadInternalsUIMessageHandler::DownloadInternalsUIMessageHandler()
: … { … }
DownloadInternalsUIMessageHandler::~DownloadInternalsUIMessageHandler() { … }
void DownloadInternalsUIMessageHandler::RegisterMessages() { … }
void DownloadInternalsUIMessageHandler::OnServiceStatusChanged(
const base::Value::Dict& service_status) { … }
void DownloadInternalsUIMessageHandler::OnServiceDownloadsAvailable(
const base::Value::List& service_downloads) { … }
void DownloadInternalsUIMessageHandler::OnServiceDownloadChanged(
const base::Value::Dict& service_download) { … }
void DownloadInternalsUIMessageHandler::OnServiceDownloadFailed(
const base::Value::Dict& service_download) { … }
void DownloadInternalsUIMessageHandler::OnServiceRequestMade(
const base::Value::Dict& service_request) { … }
void DownloadInternalsUIMessageHandler::HandleGetServiceStatus(
const base::Value::List& args) { … }
void DownloadInternalsUIMessageHandler::HandleGetServiceDownloads(
const base::Value::List& args) { … }
void DownloadInternalsUIMessageHandler::HandleStartDownload(
const base::Value::List& args) { … }
}