Index: content/browser/payments/payment_app_event_dispatcher_impl.h |
diff --git a/content/browser/payments/payment_app_event_dispatcher_impl.h b/content/browser/payments/payment_app_event_dispatcher_impl.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d8f3dc4bd7eac31f40dd518a165b04cc59bf1032 |
--- /dev/null |
+++ b/content/browser/payments/payment_app_event_dispatcher_impl.h |
@@ -0,0 +1,38 @@ |
+// 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 CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_EVENT_DISPATCHER_IMPL_H_ |
+#define CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_EVENT_DISPATCHER_IMPL_H_ |
+ |
+#include <string> |
+ |
+#include "base/macros.h" |
+#include "base/memory/singleton.h" |
+#include "components/payments/payment_app.mojom.h" |
+#include "content/public/browser/payment_app_event_dispatcher.h" |
+ |
+namespace content { |
+ |
+class BrowserContext; |
+ |
+class PaymentAppEventDispatcherImpl : public PaymentAppEventDispatcher { |
+ public: |
+ static PaymentAppEventDispatcherImpl* GetInstance(); |
+ |
+ void DispatchPaymentRequestEvent( |
+ BrowserContext* browser_context, |
+ payments::mojom::PaymentAppRequestDataPtr requestData) override; |
+ |
+ private: |
+ PaymentAppEventDispatcherImpl(); |
+ ~PaymentAppEventDispatcherImpl() override; |
+ |
+ friend struct base::DefaultSingletonTraits<PaymentAppEventDispatcherImpl>; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(PaymentAppEventDispatcherImpl); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_EVENT_DISPATCHER_IMPL_H_ |