1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_SAFE_BROWSING_CHROME_UI_MANAGER_DELEGATE_H_
#define CHROME_BROWSER_SAFE_BROWSING_CHROME_UI_MANAGER_DELEGATE_H_
#include "components/safe_browsing/content/browser/ui_manager.h"
namespace safe_browsing {
// Provides embedder-specific logic for SafeBrowsingUIManager.
class ChromeSafeBrowsingUIManagerDelegate
: public SafeBrowsingUIManager::Delegate {
public:
ChromeSafeBrowsingUIManagerDelegate();
~ChromeSafeBrowsingUIManagerDelegate() override;
ChromeSafeBrowsingUIManagerDelegate(
const ChromeSafeBrowsingUIManagerDelegate&) = delete;
ChromeSafeBrowsingUIManagerDelegate& operator=(
const ChromeSafeBrowsingUIManagerDelegate&) = delete;
// SafeBrowsingUIManager::Delegate:
std::string GetApplicationLocale() override;
void TriggerSecurityInterstitialShownExtensionEventIfDesired(
content::WebContents* web_contents,
const GURL& page_url,
const std::string& reason,
int net_error_code) override;
void TriggerSecurityInterstitialProceededExtensionEventIfDesired(
content::WebContents* web_contents,
const GURL& page_url,
const std::string& reason,
int net_error_code) override;
void TriggerUrlFilteringInterstitialExtensionEventIfDesired(
content::WebContents* web_contents,
const GURL& page_url,
const std::string& threat_type,
safe_browsing::RTLookupResponse rt_lookup_response) override;
prerender::NoStatePrefetchContents* GetNoStatePrefetchContentsIfExists(
content::WebContents* web_contents) override;
bool IsHostingExtension(content::WebContents* web_contents) override;
PrefService* GetPrefs(content::BrowserContext* browser_context) override;
history::HistoryService* GetHistoryService(
content::BrowserContext* browser_context) override;
PingManager* GetPingManager(
content::BrowserContext* browser_context) override;
bool IsMetricsAndCrashReportingEnabled() override;
bool IsSendingOfHitReportsEnabled() override;
};
} // namespace safe_browsing
#endif // CHROME_BROWSER_SAFE_BROWSING_CHROME_UI_MANAGER_DELEGATE_H_
|