#include "components/payments/content/secure_payment_confirmation_controller.h"
#include "base/check.h"
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/strings/strcat.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/single_thread_task_runner.h"
#include "build/build_config.h"
#include "components/payments/content/content_payment_request_delegate.h"
#include "components/payments/content/payment_request.h"
#include "components/payments/content/secure_payment_confirmation_app.h"
#include "components/payments/core/currency_formatter.h"
#include "components/payments/core/features.h"
#include "components/payments/core/method_strings.h"
#include "components/strings/grit/components_strings.h"
#include "components/url_formatter/elide_url.h"
#include "ui/base/l10n/l10n_util.h"
#include "url/url_constants.h"
namespace payments {
SecurePaymentConfirmationNetworkAndIssuerIconsTreatment;
SecurePaymentConfirmationController::SecurePaymentConfirmationController(
base::WeakPtr<PaymentRequest> request)
: … { … }
SecurePaymentConfirmationController::~SecurePaymentConfirmationController() =
default;
void SecurePaymentConfirmationController::ShowDialog() { … }
void SecurePaymentConfirmationController::
SetupModelAndShowDialogIfApplicable() { … }
void SecurePaymentConfirmationController::RetryDialog() { … }
void SecurePaymentConfirmationController::CloseDialog() { … }
void SecurePaymentConfirmationController::ShowErrorMessage() { … }
void SecurePaymentConfirmationController::ShowProcessingSpinner() { … }
bool SecurePaymentConfirmationController::IsInteractive() const { … }
void SecurePaymentConfirmationController::ShowPaymentHandlerScreen(
const GURL& url,
PaymentHandlerOpenWindowCallback callback) { … }
void SecurePaymentConfirmationController::ConfirmPaymentForTesting() { … }
bool SecurePaymentConfirmationController::ClickOptOutForTesting() { … }
void SecurePaymentConfirmationController::OnInitialized(
InitializationTask* initialization_task) { … }
void SecurePaymentConfirmationController::OnCancel() { … }
void SecurePaymentConfirmationController::OnOptOut() { … }
void SecurePaymentConfirmationController::OnConfirm() { … }
base::WeakPtr<SecurePaymentConfirmationController>
SecurePaymentConfirmationController::GetWeakPtr() { … }
}