#include "chrome/browser/lookalikes/safety_tip_ui_helper.h"
#include "build/build_config.h"
#include "chrome/common/url_constants.h"
#include "components/security_interstitials/core/common_string_util.h"
#include "components/security_state/content/security_state_tab_helper.h"
#include "components/security_state/core/security_state.h"
#include "components/strings/grit/components_strings.h"
#include "content/public/browser/web_contents.h"
#include "ui/base/l10n/l10n_util.h"
#if BUILDFLAG(IS_ANDROID)
#include "chrome/browser/android/tab_android.h"
#include "chrome/browser/ui/android/tab_model/tab_model.h"
#include "chrome/browser/ui/android/tab_model/tab_model_list.h"
#include "content/public/browser/navigation_controller.h"
#endif
namespace {
const char kSafetyTipLeaveSiteUrl[] = …;
}
void LeaveSiteFromSafetyTip(content::WebContents* web_contents,
const GURL& safe_url) { … }
void OpenHelpCenterFromSafetyTip(content::WebContents* web_contents) { … }
std::u16string GetSafetyTipTitle(
security_state::SafetyTipStatus safety_tip_status,
const GURL& suggested_url) { … }
std::u16string GetSafetyTipDescription(
security_state::SafetyTipStatus warning_type,
const GURL& suggested_url) { … }
int GetSafetyTipLeaveButtonId(security_state::SafetyTipStatus warning_type) { … }