#include "chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.h"
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
#include "components/payments/core/error_logger.h"
#include "components/webauthn/content/browser/internal_authenticator_impl.h"
#include "content/public/browser/render_frame_host.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
namespace payments {
namespace {
class TestAuthenticator : public content::InternalAuthenticatorImpl { … };
}
TestChromePaymentRequestDelegate::TestChromePaymentRequestDelegate(
content::RenderFrameHost* render_frame_host)
: … { … }
TestChromePaymentRequestDelegate::~TestChromePaymentRequestDelegate() = default;
void TestChromePaymentRequestDelegate::OverrideRegionDataLoader(
autofill::RegionDataLoader* region_data_loader) { … }
void TestChromePaymentRequestDelegate::OverridePrefService(
PrefService* pref_service) { … }
void TestChromePaymentRequestDelegate::OverrideOffTheRecord(
bool is_off_the_record) { … }
void TestChromePaymentRequestDelegate::OverrideValidSSL(bool is_valid_ssl) { … }
void TestChromePaymentRequestDelegate::OverrideBrowserWindowActive(
bool is_browser_window_active) { … }
void TestChromePaymentRequestDelegate::ShowDialog(
base::WeakPtr<PaymentRequest> request) { … }
bool TestChromePaymentRequestDelegate::IsOffTheRecord() const { … }
autofill::RegionDataLoader*
TestChromePaymentRequestDelegate::GetRegionDataLoader() { … }
PrefService* TestChromePaymentRequestDelegate::GetPrefService() { … }
bool TestChromePaymentRequestDelegate::IsBrowserWindowActive() const { … }
std::unique_ptr<webauthn::InternalAuthenticator>
TestChromePaymentRequestDelegate::CreateInternalAuthenticator() const { … }
std::string
TestChromePaymentRequestDelegate::GetInvalidSslCertificateErrorMessage() { … }
void TestChromePaymentRequestDelegate::GetTwaPackageName(
GetTwaPackageNameCallback callback) const { … }
const base::WeakPtr<PaymentUIObserver>
TestChromePaymentRequestDelegate::GetPaymentUIObserver() const { … }
}