Index: content/renderer/service_worker/service_worker_context_client.h |
diff --git a/content/renderer/service_worker/service_worker_context_client.h b/content/renderer/service_worker/service_worker_context_client.h |
index 2686e316ac8aed153985e388c6c2c446880e96ed..4bbcc3277959d1262421a02787023f871d4c7a4f 100644 |
--- a/content/renderer/service_worker/service_worker_context_client.h |
+++ b/content/renderer/service_worker/service_worker_context_client.h |
@@ -19,6 +19,7 @@ |
#include "base/memory/ref_counted.h" |
#include "base/strings/string16.h" |
#include "base/time/time.h" |
+#include "components/payments/payment_app.mojom.h" |
#include "content/child/webmessageportchannel_impl.h" |
#include "content/common/service_worker/service_worker_event_dispatcher.mojom.h" |
#include "content/common/service_worker/service_worker_status_code.h" |
@@ -68,6 +69,9 @@ class ServiceWorkerContextClient : public blink::WebServiceWorkerContextClient, |
using SyncCallback = |
base::Callback<void(ServiceWorkerStatusCode, |
base::Time /* dispatch_event_time */)>; |
+ using PaymentRequestEventCallback = |
+ base::Callback<void(ServiceWorkerStatusCode, |
+ base::Time /* dispatch_event_time */)>; |
using FetchCallback = |
base::Callback<void(ServiceWorkerStatusCode, |
base::Time /* dispatch_event_time */)>; |
@@ -224,6 +228,9 @@ class ServiceWorkerContextClient : public blink::WebServiceWorkerContextClient, |
const std::string& tag, |
blink::mojom::BackgroundSyncEventLastChance last_chance, |
const DispatchSyncEventCallback& callback) override; |
+ void DispatchPaymentRequestEvent( |
+ payments::mojom::PaymentAppRequestDataPtr data, |
+ const DispatchPaymentRequestEventCallback& callback) override; |
void OnActivateEvent(int request_id); |
void OnInstallEvent(int request_id); |