#include "components/payments/content/payment_request_display_manager.h"
#include "base/check.h"
#include "base/metrics/histogram_functions.h"
#include "components/payments/content/content_payment_request_delegate.h"
namespace payments {
namespace {
PaymentRequestTryShowOutcome GetTryShowOutcome(
base::WeakPtr<ContentPaymentRequestDelegate> new_delegate,
base::WeakPtr<PaymentRequestDisplayManager::DisplayHandle> current_handle) { … }
}
class PaymentRequest;
PaymentRequestDisplayManager::DisplayHandle::DisplayHandle(
base::WeakPtr<PaymentRequestDisplayManager> display_manager,
base::WeakPtr<ContentPaymentRequestDelegate> delegate)
: … { … }
PaymentRequestDisplayManager::DisplayHandle::~DisplayHandle() { … }
void PaymentRequestDisplayManager::DisplayHandle::Show(
base::WeakPtr<PaymentRequest> request) { … }
void PaymentRequestDisplayManager::DisplayHandle::Retry() { … }
void PaymentRequestDisplayManager::DisplayHandle::DisplayPaymentHandlerWindow(
const GURL& url,
PaymentHandlerOpenWindowCallback callback) { … }
base::WeakPtr<PaymentRequestDisplayManager::DisplayHandle>
PaymentRequestDisplayManager::DisplayHandle::GetWeakPtr() { … }
PaymentRequestDisplayManager::PaymentRequestDisplayManager()
: … { … }
PaymentRequestDisplayManager::~PaymentRequestDisplayManager() { … }
std::unique_ptr<PaymentRequestDisplayManager::DisplayHandle>
PaymentRequestDisplayManager::TryShow(
base::WeakPtr<ContentPaymentRequestDelegate> delegate) { … }
void PaymentRequestDisplayManager::ShowPaymentHandlerWindow(
const GURL& url,
PaymentHandlerOpenWindowCallback callback) { … }
base::WeakPtr<PaymentRequestDisplayManager>
PaymentRequestDisplayManager::GetWeakPtr() { … }
}