Package com.cefrium.payments
Class CefPaymentRequestFactory
java.lang.Object
com.cefrium.payments.CefPaymentRequestFactory
- All Implemented Interfaces:
org.chromium.services.service_manager.InterfaceFactory<org.chromium.payments.mojom.PaymentRequest>
public class CefPaymentRequestFactory
extends Object
implements org.chromium.services.service_manager.InterfaceFactory<org.chromium.payments.mojom.PaymentRequest>
Creates a no-UI PaymentRequest service for a frame running inside a Cefrium embedding.
Direct port of WebView's AwPaymentRequestFactory, minus the AwContents/AwSettings
gating (an embedding has no per-WebView "payment request enabled" setting, so it is always on).
Registered for PaymentRequest.MANAGER by CefPaymentInterfaceRegistrar, which runs
after Chrome's registrar so this overrides Chrome's ChromePaymentRequestFactory (the interface
registry is a last-writer-wins map).
-
Constructor Summary
ConstructorsConstructorDescriptionCefPaymentRequestFactory(org.chromium.content_public.browser.RenderFrameHost renderFrameHost) -
Method Summary
-
Constructor Details
-
CefPaymentRequestFactory
public CefPaymentRequestFactory(org.chromium.content_public.browser.RenderFrameHost renderFrameHost) - Parameters:
renderFrameHost- The host of the frame that invoked the PaymentRequest API.
-
-
Method Details
-
createImpl
public org.chromium.payments.mojom.PaymentRequest createImpl()- Specified by:
createImplin interfaceorg.chromium.services.service_manager.InterfaceFactory<org.chromium.payments.mojom.PaymentRequest>
-