diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/components/payments/content/payment_request.h | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/components/payments/content/payment_request.h')
-rw-r--r-- | chromium/components/payments/content/payment_request.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/chromium/components/payments/content/payment_request.h b/chromium/components/payments/content/payment_request.h index c7ca2024fa3..24c759882ba 100644 --- a/chromium/components/payments/content/payment_request.h +++ b/chromium/components/payments/content/payment_request.h @@ -35,11 +35,11 @@ class ContentPaymentRequestDelegate; class PaymentRequestWebContentsManager; // This class manages the interaction between the renderer (through the -// PaymentRequestClient and Mojo stub implementation) and the UI (through the -// PaymentRequestDelegate). The API user (merchant) specification (supported -// payment methods, required information, order details) is stored in +// PaymentRequestClient and Mojo stub implementation) and the desktop Payment UI +// (through the PaymentRequestDelegate). The API user (merchant) specification +// (supported payment methods, required information, order details) is stored in // PaymentRequestSpec, and the current user selection state (and related data) -// is stored in PaymentRequestSpec. +// is stored in PaymentRequestState. class PaymentRequest : public mojom::PaymentRequest, public PaymentHandlerHost::Delegate, public PaymentRequestSpec::Observer, @@ -51,7 +51,8 @@ class PaymentRequest : public mojom::PaymentRequest, virtual void OnCanMakePaymentReturned() = 0; virtual void OnHasEnrolledInstrumentCalled() = 0; virtual void OnHasEnrolledInstrumentReturned() = 0; - virtual void OnShowAppsReady() {} + virtual void OnShowAppsReady( + base::WeakPtr<PaymentRequest> payment_request) {} virtual void OnNotSupportedError() = 0; virtual void OnConnectionTerminated() = 0; virtual void OnAbortCalled() = 0; @@ -101,9 +102,6 @@ class PaymentRequest : public mojom::PaymentRequest, void OnShippingAddressSelected(mojom::PaymentAddressPtr address) override; void OnPayerInfoSelected(mojom::PayerDetailPtr payer_info) override; - void SetInvokedServiceWorkerIdentity(const url::Origin& origin, - int64_t registration_id); - // Called when the user explicitly cancelled the flow. Will send a message // to the renderer which will indirectly destroy this object (through // OnConnectionTerminated). @@ -125,7 +123,7 @@ class PaymentRequest : public mojom::PaymentRequest, // Hide this Payment Request if it's already showing. void HideIfNecessary(); - bool IsIncognito() const; + bool IsOffTheRecord() const; // Called when the payment handler requests to open a payment handler window. void OnPaymentHandlerOpenWindowCalled(); @@ -187,6 +185,8 @@ class PaymentRequest : public mojom::PaymentRequest, void RespondToHasEnrolledInstrumentQuery(bool has_enrolled_instrument, bool warn_localhost_or_file); + void OnAbortResult(bool aborted); + content::WebContents* web_contents_; const content::GlobalFrameRoutingId initiator_frame_routing_id_; DeveloperConsoleLogger log_; |