#include "components/autofill/core/browser/ui/payments/autofill_progress_dialog_controller_impl.h"
#include "base/memory/weak_ptr.h"
#include "components/autofill/core/browser/autofill_progress_dialog_type.h"
#include "components/autofill/core/browser/metrics/autofill_metrics.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
namespace autofill {
AutofillProgressDialogControllerImpl::AutofillProgressDialogControllerImpl(
AutofillProgressDialogType autofill_progress_dialog_type,
base::OnceClosure cancel_callback)
: … { … }
AutofillProgressDialogControllerImpl::~AutofillProgressDialogControllerImpl() { … }
void AutofillProgressDialogControllerImpl::ShowDialog(
base::OnceCallback<base::WeakPtr<AutofillProgressDialogView>()>
create_and_show_view_callback) { … }
void AutofillProgressDialogControllerImpl::DismissDialog(
bool show_confirmation_before_closing,
base::OnceClosure no_interactive_authentication_callback) { … }
void AutofillProgressDialogControllerImpl::OnDismissed(
bool is_canceled_by_user) { … }
std::u16string AutofillProgressDialogControllerImpl::GetLoadingTitle() const { … }
std::u16string AutofillProgressDialogControllerImpl::GetConfirmationTitle()
const { … }
std::u16string AutofillProgressDialogControllerImpl::GetCancelButtonLabel()
const { … }
std::u16string AutofillProgressDialogControllerImpl::GetLoadingMessage() const { … }
std::u16string AutofillProgressDialogControllerImpl::GetConfirmationMessage()
const { … }
base::WeakPtr<AutofillProgressDialogController>
AutofillProgressDialogControllerImpl::GetWeakPtr() { … }
#if BUILDFLAG(IS_IOS)
base::WeakPtr<AutofillProgressDialogControllerImpl>
AutofillProgressDialogControllerImpl::GetImplWeakPtr() {
return weak_ptr_factory_.GetWeakPtr();
}
#endif
}