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

Unified Diff: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp

Issue 2705293010: PaymentApp: Implement respondWith() in PaymentRequestEvent. (blink side) (Closed)
Patch Set: PaymentApp: Implement respondWith() in PaymentRequestEvent. (blink side) Created 3 years, 9 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
Index: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp
index 907f36b3359f1be03df5a82bed4ad8f76a94e489..8aaf020526834203397fbd2e2a24be53bf3dba72 100644
--- a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeClientImpl.cpp
@@ -30,12 +30,13 @@
#include "web/ServiceWorkerGlobalScopeClientImpl.h"
+#include <memory>
+#include <utility>
#include "modules/fetch/Response.h"
#include "public/platform/WebURL.h"
+#include "public/platform/modules/payments/WebPaymentAppResponse.h"
#include "public/platform/modules/serviceworker/WebServiceWorkerResponse.h"
#include "public/web/modules/serviceworker/WebServiceWorkerContextClient.h"
-#include <memory>
-#include <utility>
namespace blink {
@@ -99,6 +100,13 @@ void ServiceWorkerGlobalScopeClientImpl::respondToFetchEvent(
m_client.respondToFetchEvent(fetchEventID, eventDispatchTime);
}
+void ServiceWorkerGlobalScopeClientImpl::respondToPaymentRequestEvent(
+ int eventID,
+ const WebPaymentAppResponse& response,
+ double eventDispatchTime) {
+ m_client.respondToPaymentRequestEvent(eventID, response, eventDispatchTime);
+}
+
void ServiceWorkerGlobalScopeClientImpl::respondToFetchEvent(
int fetchEventID,
const WebServiceWorkerResponse& response,

Powered by Google App Engine
This is Rietveld 408576698