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 413f5ff9dac61e35051517f1e63a8c05790282fe..b81a19b931e61ee058113f1830745a528032b012 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" |
@@ -31,7 +32,7 @@ class ScriptState; |
class ShippingAddress; |
// TODO(thakis): Make this class final again once https://crbug.com/608705 is fixed. |
-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); |
@@ -59,6 +60,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: |