#include "chrome/browser/safe_browsing/chrome_ui_manager_delegate.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/interstitials/enterprise_util.h"
#include "chrome/browser/metrics/chrome_metrics_service_accessor.h"
#include "chrome/browser/preloading/prefetch/no_state_prefetch/chrome_no_state_prefetch_contents_delegate.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/safe_browsing/chrome_ping_manager_factory.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/web_contents.h"
#include "extensions/buildflags/buildflags.h"
#include "services/network/public/cpp/cross_thread_pending_shared_url_loader_factory.h"
#if BUILDFLAG(ENABLE_EXTENSIONS)
#include "extensions/browser/process_manager.h"
#endif
namespace safe_browsing {
ChromeSafeBrowsingUIManagerDelegate::ChromeSafeBrowsingUIManagerDelegate() =
default;
ChromeSafeBrowsingUIManagerDelegate::~ChromeSafeBrowsingUIManagerDelegate() =
default;
std::string ChromeSafeBrowsingUIManagerDelegate::GetApplicationLocale() { … }
void ChromeSafeBrowsingUIManagerDelegate::
TriggerSecurityInterstitialShownExtensionEventIfDesired(
content::WebContents* web_contents,
const GURL& page_url,
const std::string& reason,
int net_error_code) { … }
void ChromeSafeBrowsingUIManagerDelegate::
TriggerSecurityInterstitialProceededExtensionEventIfDesired(
content::WebContents* web_contents,
const GURL& page_url,
const std::string& reason,
int net_error_code) { … }
#if !BUILDFLAG(IS_ANDROID)
void ChromeSafeBrowsingUIManagerDelegate::
TriggerUrlFilteringInterstitialExtensionEventIfDesired(
content::WebContents* web_contents,
const GURL& page_url,
const std::string& threat_type,
safe_browsing::RTLookupResponse rt_lookup_response) { … }
#endif
prerender::NoStatePrefetchContents*
ChromeSafeBrowsingUIManagerDelegate::GetNoStatePrefetchContentsIfExists(
content::WebContents* web_contents) { … }
bool ChromeSafeBrowsingUIManagerDelegate::IsHostingExtension(
content::WebContents* web_contents) { … }
PrefService* ChromeSafeBrowsingUIManagerDelegate::GetPrefs(
content::BrowserContext* browser_context) { … }
history::HistoryService* ChromeSafeBrowsingUIManagerDelegate::GetHistoryService(
content::BrowserContext* browser_context) { … }
PingManager* ChromeSafeBrowsingUIManagerDelegate::GetPingManager(
content::BrowserContext* browser_context) { … }
bool ChromeSafeBrowsingUIManagerDelegate::IsMetricsAndCrashReportingEnabled() { … }
bool ChromeSafeBrowsingUIManagerDelegate::IsSendingOfHitReportsEnabled() { … }
}