#ifndef COMPONENTS_SAFE_BROWSING_CONTENT_BROWSER_CLIENT_REPORT_UTIL_H_
#define COMPONENTS_SAFE_BROWSING_CONTENT_BROWSER_CLIENT_REPORT_UTIL_H_
#include "components/safe_browsing/core/common/proto/csd.pb.h"
#include "components/security_interstitials/core/base_safe_browsing_error_ui.h"
#include "components/security_interstitials/core/unsafe_resource.h"
namespace safe_browsing::client_report_utils {
CSBRR;
CSBRR::SafeBrowsingUrlApiType GetUrlApiTypeForThreatSource(
safe_browsing::ThreatSource source);
CSBRR::ReportType GetReportTypeFromSBThreatType(SBThreatType threat_type);
CSBRR::WarningShownInfo::WarningUXType GetWarningUXTypeFromSBThreatType(
SBThreatType threat_type);
CSBRR::InterstitialInteraction::SecurityInterstitialInteraction
GetSecurityInterstitialInteractionFromCommand(
security_interstitials::SecurityInterstitialCommand command);
bool IsReportableUrl(const GURL& url);
GURL GetPageUrl(const security_interstitials::UnsafeResource& resource);
GURL GetReferrerUrl(const security_interstitials::UnsafeResource& resource);
void FillReportBasicResourceDetails(
CSBRR* report,
const security_interstitials::UnsafeResource& resource);
void FillInterstitialInteractionsHelper(
CSBRR* report,
security_interstitials::InterstitialInteractionMap*
interstitial_interactions);
}
#endif