#include "components/autofill/core/browser/ui/payments/card_unmask_authentication_selection_dialog_controller_impl.h"
#include <string>
#include "base/check_is_test.h"
#include "base/not_fatal_until.h"
#include "components/autofill/core/browser/metrics/autofill_metrics.h"
#include "components/autofill/core/browser/payments/card_unmask_challenge_option.h"
#include "components/autofill/core/browser/ui/payments/card_unmask_authentication_selection_dialog.h"
#include "components/autofill/core/common/autofill_payments_features.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/image_model.h"
namespace autofill {
CardUnmaskAuthenticationSelectionDialogControllerImpl::
CardUnmaskAuthenticationSelectionDialogControllerImpl(
const std::vector<CardUnmaskChallengeOption>& challenge_options,
base::OnceCallback<void(const std::string&)>
confirm_unmasking_method_callback,
base::OnceClosure cancel_unmasking_closure)
: … { … }
CardUnmaskAuthenticationSelectionDialogControllerImpl::
~CardUnmaskAuthenticationSelectionDialogControllerImpl() { … }
void CardUnmaskAuthenticationSelectionDialogControllerImpl::ShowDialog(
CardUnmaskAuthenticationSelectionDialogControllerImpl::CreateAndShowCallback
create_and_show_callback) { … }
void CardUnmaskAuthenticationSelectionDialogControllerImpl::
DismissDialogUponServerProcessedAuthenticationMethodRequest(
bool server_success) { … }
void CardUnmaskAuthenticationSelectionDialogControllerImpl::OnDialogClosed(
bool user_closed_dialog,
bool server_success) { … }
void CardUnmaskAuthenticationSelectionDialogControllerImpl::
OnOkButtonClicked() { … }
std::u16string
CardUnmaskAuthenticationSelectionDialogControllerImpl::GetWindowTitle() const { … }
std::u16string
CardUnmaskAuthenticationSelectionDialogControllerImpl::GetContentHeaderText()
const { … }
const std::vector<CardUnmaskChallengeOption>&
CardUnmaskAuthenticationSelectionDialogControllerImpl::GetChallengeOptions()
const { … }
std::u16string CardUnmaskAuthenticationSelectionDialogControllerImpl::
GetAuthenticationModeLabel(
const CardUnmaskChallengeOption& challenge_option) const { … }
std::u16string
CardUnmaskAuthenticationSelectionDialogControllerImpl::GetContentFooterText()
const { … }
std::u16string
CardUnmaskAuthenticationSelectionDialogControllerImpl::GetOkButtonLabel()
const { … }
std::u16string
CardUnmaskAuthenticationSelectionDialogControllerImpl::GetProgressLabel()
const { … }
void CardUnmaskAuthenticationSelectionDialogControllerImpl::
SetSelectedChallengeOptionId(
const CardUnmaskChallengeOption::ChallengeOptionId&
selected_challenge_option_id) { … }
base::WeakPtr<CardUnmaskAuthenticationSelectionDialogControllerImpl>
CardUnmaskAuthenticationSelectionDialogControllerImpl::GetWeakPtr() { … }
}