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

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

Issue 2699713003: [WIP] RespondWithObserver
Patch Set: RespondWithObserver Created 3 years, 10 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 8fd4855a4a6b35b0bba560b0ae0f4ab832afefd3..7956df344a5f55a67614af65e867f9feddb4560e 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