#include "components/safe_browsing/core/browser/realtime/policy_engine.h"
#include "base/containers/contains.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
#include "build/build_config.h"
#include "components/enterprise/connectors/core/common.h"
#include "components/enterprise/connectors/core/connectors_prefs.h"
#include "components/prefs/pref_service.h"
#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
#include "components/safe_browsing/core/common/utils.h"
#include "components/unified_consent/pref_names.h"
#include "components/user_prefs/user_prefs.h"
#include "components/variations/service/variations_service.h"
#if BUILDFLAG(IS_ANDROID)
#include "base/metrics/field_trial_params.h"
#include "base/system/sys_info.h"
#endif
namespace {
enum class ConsumerVersionReason { … };
}
namespace safe_browsing {
bool RealTimePolicyEngine::IsInExcludedCountry(
const std::string& country_code) { … }
bool RealTimePolicyEngine::IsUserMbbOptedIn(PrefService* pref_service) { … }
bool RealTimePolicyEngine::IsUserEpOptedIn(PrefService* pref_service) { … }
bool RealTimePolicyEngine::CanPerformFullURLLookup(
PrefService* pref_service,
bool is_off_the_record,
variations::VariationsService* variations_service) { … }
bool RealTimePolicyEngine::CanPerformFullURLLookupWithToken(
PrefService* pref_service,
bool is_off_the_record,
ClientConfiguredForTokenFetchesCallback client_callback,
variations::VariationsService* variations_service) { … }
bool RealTimePolicyEngine::CanPerformEnterpriseFullURLLookup(
const PrefService* pref_service,
bool has_valid_dm_token,
bool is_off_the_record,
bool is_guest_profile) { … }
}