#include "chrome/browser/ui/webui/reset_password/reset_password_ui.h"
#include <memory>
#include <string>
#include <utility>
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/metrics/histogram_macros.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/reset_password/reset_password.mojom.h"
#include "chrome/browser/ui/webui/webui_util.h"
#include "chrome/common/url_constants.h"
#include "chrome/grit/browser_resources.h"
#include "components/safe_browsing/content/browser/password_protection/password_protection_service.h"
#include "components/safe_browsing/core/browser/password_protection/metrics_util.h"
#include "components/safe_browsing/core/common/proto/csd.pb.h"
#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
#include "components/strings/grit/components_strings.h"
#include "components/url_formatter/url_formatter.h"
#include "components/user_prefs/user_prefs.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui_data_source.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "ui/base/l10n/l10n_util.h"
LoginReputationClientResponse;
RequestOutcome;
namespace {
enum class StringType { … };
class ResetPasswordHandlerImpl : public mojom::ResetPasswordHandler { … };
PasswordType GetPasswordType(content::WebContents* web_contents) { … }
std::u16string GetFormattedHostName(const std::string host_name) { … }
}
ResetPasswordUI::ResetPasswordUI(content::WebUI* web_ui)
: … { … }
WEB_UI_CONTROLLER_TYPE_IMPL(ResetPasswordUI)
ResetPasswordUI::~ResetPasswordUI() { … }
void ResetPasswordUI::BindInterface(
mojo::PendingReceiver<mojom::ResetPasswordHandler> receiver) { … }
base::Value::Dict ResetPasswordUI::PopulateStrings() const { … }