#include "components/safe_browsing/content/browser/client_report_util.h"
#include "components/safe_browsing/content/browser/unsafe_resource_util.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/navigation_entry.h"
namespace safe_browsing::client_report_utils {
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) { … }
}