Index: third_party/WebKit/Source/modules/payments/PaymentRequestEvent.h |
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.h b/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d6312ff2cc5f6746f13f930c19e6d029ecd260dc |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequestEvent.h |
@@ -0,0 +1,41 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef PaymentRequestEvent_h |
+#define PaymentRequestEvent_h |
+ |
+#include "modules/EventModules.h" |
+#include "modules/payments/PaymentAppRequestData.h" |
+#include "modules/serviceworkers/ExtendableEvent.h" |
+#include "platform/heap/Handle.h" |
+ |
+namespace WTF { |
+class AtomicString; |
+} |
+ |
+namespace blink { |
+ |
+class MODULES_EXPORT PaymentRequestEvent final : public ExtendableEvent { |
+ DEFINE_WRAPPERTYPEINFO(); |
+ WTF_MAKE_NONCOPYABLE(PaymentRequestEvent); |
+ |
+ public: |
+ ~PaymentRequestEvent() override; |
+ |
+ const AtomicString& interfaceName() const override; |
+ |
+ void data(PaymentAppRequestData&) const; |
+ void respondWith(ScriptPromise); |
+ |
+ DECLARE_VIRTUAL_TRACE(); |
+ |
+ private: |
+ PaymentRequestEvent(const AtomicString& type, |
+ const PaymentAppRequestData&, |
+ WaitUntilObserver*); |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // PaymentRequestEvent_h |