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

Unified Diff: content/renderer/service_worker/service_worker_context_client.h

Issue 2615063002: PaymentApp: Add interfaces for implementing InvokePaymentApp(). (Closed)
Patch Set: PaymentApp: Add interfaces for implementing InvokePaymentApp(). Created 3 years, 11 months 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/renderer/DEPS ('k') | content/renderer/service_worker/service_worker_context_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « content/renderer/DEPS ('k') | content/renderer/service_worker/service_worker_context_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698