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

Unified Diff: content/public/browser/payment_app_event_dispatcher.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/public/browser/BUILD.gn ('k') | content/renderer/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/payment_app_event_dispatcher.h
diff --git a/content/public/browser/payment_app_event_dispatcher.h b/content/public/browser/payment_app_event_dispatcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..1c628cba506fb409d469ef6efefd2a65b3449ece
--- /dev/null
+++ b/content/public/browser/payment_app_event_dispatcher.h
@@ -0,0 +1,32 @@
+// 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_PUBLIC_BROWSER_PAYMENT_APP_EVENT_DISPATCHER_H_
+#define CONTENT_PUBLIC_BROWSER_PAYMENT_APP_EVENT_DISPATCHER_H_
+
+#include <string>
+
+#include "base/macros.h"
+#include "components/payments/payment_app.mojom.h"
+#include "content/common/content_export.h"
+
+namespace content {
+
+class BrowserContext;
+
+class CONTENT_EXPORT PaymentAppEventDispatcher {
+ public:
+ static PaymentAppEventDispatcher* GetInstance();
+
+ virtual void DispatchPaymentRequestEvent(
+ BrowserContext* browser_context,
+ payments::mojom::PaymentAppRequestDataPtr requestData) = 0;
+
+ protected:
+ virtual ~PaymentAppEventDispatcher() {}
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_EVENT_DISPATCHER_IMPL_H_
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/renderer/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698