#include "components/payments/content/test_content_payment_request_delegate.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
#include "components/payments/content/payment_manifest_web_data_service.h"
#include "components/payments/core/error_strings.h"
#include "content/public/browser/render_frame_host.h"
namespace payments {
TestContentPaymentRequestDelegate::TestContentPaymentRequestDelegate(
std::unique_ptr<base::SingleThreadTaskExecutor> task_executor,
autofill::PersonalDataManager* pdm)
: … { … }
TestContentPaymentRequestDelegate::~TestContentPaymentRequestDelegate() =
default;
content::RenderFrameHost*
TestContentPaymentRequestDelegate::GetRenderFrameHost() const { … }
std::unique_ptr<webauthn::InternalAuthenticator>
TestContentPaymentRequestDelegate::CreateInternalAuthenticator() const { … }
scoped_refptr<PaymentManifestWebDataService>
TestContentPaymentRequestDelegate::GetPaymentManifestWebDataService() const { … }
PaymentRequestDisplayManager*
TestContentPaymentRequestDelegate::GetDisplayManager() { … }
void TestContentPaymentRequestDelegate::ShowDialog(
base::WeakPtr<PaymentRequest> request) { … }
void TestContentPaymentRequestDelegate::RetryDialog() { … }
void TestContentPaymentRequestDelegate::CloseDialog() { … }
void TestContentPaymentRequestDelegate::ShowErrorMessage() { … }
void TestContentPaymentRequestDelegate::ShowProcessingSpinner() { … }
bool TestContentPaymentRequestDelegate::IsBrowserWindowActive() const { … }
void TestContentPaymentRequestDelegate::GetTwaPackageName(
GetTwaPackageNameCallback callback) const { … }
PaymentRequestDialog* TestContentPaymentRequestDelegate::GetDialogForTesting() { … }
SecurePaymentConfirmationNoCreds*
TestContentPaymentRequestDelegate::GetNoMatchingCredentialsDialogForTesting() { … }
autofill::PersonalDataManager*
TestContentPaymentRequestDelegate::GetPersonalDataManager() { … }
const std::string& TestContentPaymentRequestDelegate::GetApplicationLocale()
const { … }
bool TestContentPaymentRequestDelegate::IsOffTheRecord() const { … }
const GURL& TestContentPaymentRequestDelegate::GetLastCommittedURL() const { … }
autofill::AddressNormalizer*
TestContentPaymentRequestDelegate::GetAddressNormalizer() { … }
autofill::RegionDataLoader*
TestContentPaymentRequestDelegate::GetRegionDataLoader() { … }
ukm::UkmRecorder* TestContentPaymentRequestDelegate::GetUkmRecorder() { … }
std::string TestContentPaymentRequestDelegate::GetAuthenticatedEmail() const { … }
PrefService* TestContentPaymentRequestDelegate::GetPrefService() { … }
void TestContentPaymentRequestDelegate::EmbedPaymentHandlerWindow(
const GURL& url,
PaymentHandlerOpenWindowCallback callback) { … }
bool TestContentPaymentRequestDelegate::IsInteractive() const { … }
std::string
TestContentPaymentRequestDelegate::GetInvalidSslCertificateErrorMessage() { … }
autofill::TestAddressNormalizer*
TestContentPaymentRequestDelegate::test_address_normalizer() { … }
void TestContentPaymentRequestDelegate::DelayFullCardRequestCompletion() { … }
void TestContentPaymentRequestDelegate::CompleteFullCardRequest() { … }
const base::WeakPtr<PaymentUIObserver>
TestContentPaymentRequestDelegate::GetPaymentUIObserver() const { … }
void TestContentPaymentRequestDelegate::ShowNoMatchingPaymentCredentialDialog(
const std::u16string& merchant_name,
const std::string& rp_id,
base::OnceClosure response_callback,
base::OnceClosure opt_out_callback) { … }
std::optional<base::UnguessableToken>
TestContentPaymentRequestDelegate::GetChromeOSTWAInstanceId() const { … }
}