| 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_
|
|
|