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

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

Issue 2640293002: PaymentRequest: Move m_abortTimer to frame-specific TaskRunnerTimer. (Closed)
Patch Set: MiscPlatformAPI Created 3 years, 11 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/PaymentRequestUpdateEvent.h
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h b/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h
index 31ead72fc92a997a95f4bfefa0057d9c56dc3304..df585be6e2d2724fc60570d3850dd2f17ef0df1e 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.h
@@ -16,6 +16,7 @@
namespace blink {
class ExceptionState;
+class ExecutionContext;
class PaymentUpdater;
class ScriptState;
@@ -26,6 +27,7 @@ class MODULES_EXPORT PaymentRequestUpdateEvent final : public Event {
~PaymentRequestUpdateEvent() override;
static PaymentRequestUpdateEvent* create(
+ ExecutionContext*,
const AtomicString& type,
const PaymentRequestUpdateEventInit& = PaymentRequestUpdateEventInit());
@@ -38,14 +40,15 @@ class MODULES_EXPORT PaymentRequestUpdateEvent final : public Event {
void onUpdateEventTimeoutForTesting();
private:
- PaymentRequestUpdateEvent(const AtomicString& type,
+ PaymentRequestUpdateEvent(ExecutionContext*,
+ const AtomicString& type,
const PaymentRequestUpdateEventInit&);
void onUpdateEventTimeout(TimerBase*);
Member<PaymentUpdater> m_updater;
bool m_waitForUpdate;
- Timer<PaymentRequestUpdateEvent> m_abortTimer;
+ TaskRunnerTimer<PaymentRequestUpdateEvent> m_abortTimer;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698