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

Unified Diff: content/browser/payments/payment_app_event_dispatcher_impl.h

Issue 2529223002: event impl
Patch Set: Event dispatch Created 4 years 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
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/payments/payment_app_event_dispatcher_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/payments/payment_app_event_dispatcher_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698