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

Unified Diff: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h

Issue 2528683002: PaymentApp: Blink side of payment request event dispatching in service worker. (Closed)
Patch Set: PaymentApp: Blink side of payment request event dispatching in service worker. 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
Index: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
diff --git a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h b/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
index 367dd6afb202f1927d3d5ad39b651f9ab67bf73b..93a4980517590e912be6ca2f1dfaa369b80de4c7 100644
--- a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
+++ b/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
@@ -190,6 +190,13 @@ class WebServiceWorkerContextClient {
WebServiceWorkerEventResult result,
double eventDispatchTime) {}
+ // ServiceWorker specific method. Called after PaymentRequestEvent (dispatched
+ // via WebServiceWorkerContextProxy) is handled by the ServiceWorker's script
+ // context.
+ virtual void didHandlePaymentRequestEvent(int paymentRequestEventID,
+ WebServiceWorkerEventResult result,
+ double eventDispatchTime) {}
+
// Ownership of the returned object is transferred to the caller.
// This is called on the main thread.
virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider(

Powered by Google App Engine
This is Rietveld 408576698