| Index: third_party/WebKit/Source/modules/payments/PaymentRequest.h
|
| diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequest.h b/third_party/WebKit/Source/modules/payments/PaymentRequest.h
|
| index 6641cc63ebd3c6fd533c0120d9bd1bbc9eb0ef98..026dd7558df6fdd0fbf577f55fd3a5081245d2c1 100644
|
| --- a/third_party/WebKit/Source/modules/payments/PaymentRequest.h
|
| +++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.h
|
| @@ -14,6 +14,7 @@
|
| #include "modules/payments/PaymentCompleter.h"
|
| #include "modules/payments/PaymentDetails.h"
|
| #include "modules/payments/PaymentOptions.h"
|
| +#include "modules/payments/PaymentUpdater.h"
|
| #include "mojo/public/cpp/bindings/binding.h"
|
| #include "platform/heap/Handle.h"
|
| #include "public/platform/modules/payments/payment_request.mojom-blink.h"
|
| @@ -30,7 +31,7 @@ class ScriptPromiseResolver;
|
| class ScriptState;
|
| class ShippingAddress;
|
|
|
| -class MODULES_EXPORT PaymentRequest final : public EventTargetWithInlineData, WTF_NON_EXPORTED_BASE(public mojom::blink::PaymentRequestClient), public PaymentCompleter, public ContextLifecycleObserver {
|
| +class MODULES_EXPORT PaymentRequest final : public EventTargetWithInlineData, WTF_NON_EXPORTED_BASE(public mojom::blink::PaymentRequestClient), public PaymentCompleter, public PaymentUpdater, public ContextLifecycleObserver {
|
| DEFINE_WRAPPERTYPEINFO();
|
| USING_GARBAGE_COLLECTED_MIXIN(PaymentRequest)
|
| WTF_MAKE_NONCOPYABLE(PaymentRequest);
|
| @@ -58,6 +59,10 @@ public:
|
| // PaymentCompleter:
|
| ScriptPromise complete(ScriptState*, bool success) override;
|
|
|
| + // PaymentUpdater:
|
| + void onUpdatePaymentDetails(const ScriptValue& detailsScriptValue) override;
|
| + void onUpdatePaymentDetailsFailure(const ScriptValue& error) override;
|
| +
|
| DECLARE_TRACE();
|
|
|
| private:
|
|
|