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 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:
      createImpl in interface org.chromium.services.service_manager.InterfaceFactory<org.chromium.payments.mojom.PaymentRequest>