#include "chrome/browser/download/download_stats.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/user_metrics.h"
#include "base/notreached.h"
#include "build/build_config.h"
#include "chrome/browser/download/download_ui_model.h"
#include "components/download/public/common/download_content.h"
#include "components/profile_metrics/browser_profile_type.h"
#include "components/safe_browsing/content/browser/download/download_stats.h"
void RecordDownloadSource(ChromeDownloadSource source) { … }
void MaybeRecordDangerousDownloadWarningShown(DownloadUIModel& model) { … }
void RecordDownloadOpen(ChromeDownloadOpenMethod open_method,
const std::string& mime_type_string) { … }
void RecordDatabaseAvailability(bool is_available) { … }
void RecordDownloadPathGeneration(DownloadPathGenerationEvent event,
bool is_transient) { … }
void RecordDownloadPathValidation(download::PathValidationResult result,
bool is_transient) { … }
void RecordDownloadCancelReason(DownloadCancelReason reason) { … }
void RecordDownloadShelfDragInfo(DownloadDragInfo drag_info) { … }
void RecordDownloadStartPerProfileType(Profile* profile) { … }
#if BUILDFLAG(IS_ANDROID)
void RecordDownloadPromptStatus(DownloadPromptStatus status) {
base::UmaHistogramEnumeration("MobileDownload.DownloadPromptStatus", status,
DownloadPromptStatus::MAX_VALUE);
}
#endif
DownloadShelfContextMenuAction DownloadCommandToShelfAction(
DownloadCommands::Command download_command,
bool clicked) { … }