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

Side by Side Diff: third_party/WebKit/Source/modules/payments/PaymentRequestUpdateEvent.cpp

Issue 2808573002: PaymentRequest: Change the timer task type. (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/payments/PaymentRequestUpdateEvent.h" 5 #include "modules/payments/PaymentRequestUpdateEvent.h"
6 6
7 #include "bindings/core/v8/ExceptionState.h" 7 #include "bindings/core/v8/ExceptionState.h"
8 #include "bindings/core/v8/ScriptFunction.h" 8 #include "bindings/core/v8/ScriptFunction.h"
9 #include "bindings/core/v8/V8Binding.h" 9 #include "bindings/core/v8/V8Binding.h"
10 #include "core/dom/DOMException.h" 10 #include "core/dom/DOMException.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 "Timed out as the page didn't resolve the promise from change event"); 148 "Timed out as the page didn't resolve the promise from change event");
149 } 149 }
150 150
151 PaymentRequestUpdateEvent::PaymentRequestUpdateEvent( 151 PaymentRequestUpdateEvent::PaymentRequestUpdateEvent(
152 ExecutionContext* executionContext, 152 ExecutionContext* executionContext,
153 const AtomicString& type, 153 const AtomicString& type,
154 const PaymentRequestUpdateEventInit& init) 154 const PaymentRequestUpdateEventInit& init)
155 : Event(type, init), 155 : Event(type, init),
156 m_waitForUpdate(false), 156 m_waitForUpdate(false),
157 m_abortTimer( 157 m_abortTimer(
158 TaskRunnerHelper::get(TaskType::MiscPlatformAPI, executionContext), 158 TaskRunnerHelper::get(TaskType::UserInteraction, executionContext),
159 this, 159 this,
160 &PaymentRequestUpdateEvent::onUpdateEventTimeout) {} 160 &PaymentRequestUpdateEvent::onUpdateEventTimeout) {}
161 161
162 } // namespace blink 162 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698