Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(867)

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentRequest.h

Issue 2192413002: Timeout if website never completes the transaction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 178f05d6c98b1ebbb583ed41b0c6aa72f3d1c609..2a59ff8c152da12f9a7785c2e5c6318641dab4d3 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.h
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.h
@@ -17,6 +17,7 @@
#include "modules/payments/PaymentOptions.h"
#include "modules/payments/PaymentUpdater.h"
#include "mojo/public/cpp/bindings/binding.h"
+#include "platform/Timer.h"
#include "platform/heap/Handle.h"
#include "public/platform/modules/payments/payment_request.mojom-blink.h"
#include "wtf/Compiler.h"
@@ -72,6 +73,8 @@ public:
DECLARE_TRACE();
+ void onTimerFired(TimerBase*);
Marijn Kruisselbrink 2016/08/01 22:42:25 Especially if this is going to be a public method
please use gerrit instead 2016/08/01 23:55:35 Done.
+
private:
PaymentRequest(ScriptState*, const HeapVector<PaymentMethodData>&, const PaymentDetails&, const PaymentOptions&, ExceptionState&);
@@ -102,6 +105,7 @@ private:
Member<ScriptPromiseResolver> m_abortResolver;
mojom::blink::PaymentRequestPtr m_paymentProvider;
mojo::Binding<mojom::blink::PaymentRequestClient> m_clientBinding;
+ Timer<PaymentRequest> m_completeTimer;
Marijn Kruisselbrink 2016/08/01 22:42:25 (in the future I believe using Timer directly for
please use gerrit instead 2016/08/01 23:55:35 Acknowledged.
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698