chromium/chrome/browser/download/download_stats.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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)
// Records whether the download dialog is shown to the user.
void RecordDownloadPromptStatus(DownloadPromptStatus status) {
  base::UmaHistogramEnumeration("MobileDownload.DownloadPromptStatus", status,
                                DownloadPromptStatus::MAX_VALUE);
}
#endif  // BUILDFLAG(IS_ANDROID)

DownloadShelfContextMenuAction DownloadCommandToShelfAction(
    DownloadCommands::Command download_command,
    bool clicked) {}