#include "chrome/browser/safe_browsing/chrome_client_side_detection_host_delegate.h"
#include "base/metrics/histogram_macros.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/safe_browsing/chrome_user_population_helper.h"
#include "chrome/browser/safe_browsing/client_side_detection_service_factory.h"
#include "chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager_factory.h"
#include "chrome/browser/safe_browsing/safe_browsing_service.h"
#include "chrome/browser/safe_browsing/user_interaction_observer.h"
#include "chrome/browser/safe_browsing/verdict_cache_manager_factory.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "components/prefs/pref_service.h"
#include "components/safe_browsing/content/browser/client_side_detection_host.h"
#include "components/safe_browsing/content/browser/client_side_detection_service.h"
#include "components/safe_browsing/content/browser/safe_browsing_navigation_observer_manager.h"
#include "components/safe_browsing/core/browser/db/database_manager.h"
#include "components/safe_browsing/core/browser/sync/safe_browsing_primary_account_token_fetcher.h"
#include "components/safe_browsing/core/browser/sync/sync_utils.h"
#include "components/signin/public/identity_manager/identity_manager.h"
#include "content/public/browser/global_routing_id.h"
namespace safe_browsing {
namespace {
const int kCSDAttributionUserGestureLimitForExtendedReporting = …;
}
std::unique_ptr<ClientSideDetectionHost>
ChromeClientSideDetectionHostDelegate::CreateHost(content::WebContents* tab) { … }
ChromeClientSideDetectionHostDelegate::ChromeClientSideDetectionHostDelegate(
content::WebContents* web_contents)
: … { … }
ChromeClientSideDetectionHostDelegate::
~ChromeClientSideDetectionHostDelegate() = default;
bool ChromeClientSideDetectionHostDelegate::
HasSafeBrowsingUserInteractionObserver() { … }
PrefService* ChromeClientSideDetectionHostDelegate::GetPrefs() { … }
scoped_refptr<SafeBrowsingDatabaseManager>
ChromeClientSideDetectionHostDelegate::GetSafeBrowsingDBManager() { … }
SafeBrowsingNavigationObserverManager* ChromeClientSideDetectionHostDelegate::
GetSafeBrowsingNavigationObserverManager() { … }
scoped_refptr<BaseUIManager>
ChromeClientSideDetectionHostDelegate::GetSafeBrowsingUIManager() { … }
base::WeakPtr<ClientSideDetectionService>
ChromeClientSideDetectionHostDelegate::GetClientSideDetectionService() { … }
VerdictCacheManager* ChromeClientSideDetectionHostDelegate::GetCacheManager() { … }
void ChromeClientSideDetectionHostDelegate::AddReferrerChain(
ClientPhishingRequest* verdict,
GURL current_url,
const content::GlobalRenderFrameHostId& current_outermost_main_frame_id) { … }
size_t ChromeClientSideDetectionHostDelegate::CountOfRecentNavigationsToAppend(
SafeBrowsingNavigationObserverManager::AttributionResult result) { … }
ChromeUserPopulation
ChromeClientSideDetectionHostDelegate::GetUserPopulation() { … }
}