#ifndef COMPONENTS_SAFE_BROWSING_CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_
#define COMPONENTS_SAFE_BROWSING_CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_STATS_H_
#include <optional>
#include "components/download/public/common/download_danger_type.h"
#include "components/download/public/common/download_stats.h"
#include "components/safe_browsing/content/common/file_type_policies.h"
namespace base {
class FilePath;
class Time;
}
namespace safe_browsing {
enum class UserGestureFileTypeAttributes { … };
void RecordDangerousDownloadWarningShown(
download::DownloadDangerType danger_type,
const base::FilePath& file_path,
bool is_https,
bool has_user_gesture);
void RecordDangerousDownloadWarningBypassed(
download::DownloadDangerType danger_type,
const base::FilePath& file_path,
bool is_https,
bool has_user_gesture);
void RecordDownloadOpenedLatency(download::DownloadDangerType danger_type,
download::DownloadContent download_content,
base::Time download_opened_time,
base::Time download_end_time,
bool show_download_in_folder);
void RecordDownloadOpenedLatencyFileType(
download::DownloadContent download_content,
base::Time download_opened_time,
base::Time download_end_time);
void RecordDownloadFileTypeAttributes(
DownloadFileType::DangerLevel danger_level,
bool has_user_gesture,
bool visited_referrer_before,
std::optional<base::Time> latest_bypass_time);
}
#endif