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 cdf5b2b5b74ba580b2f5e83b18f9ba7b9bcb1df5..abf69dd82af4c4e18d6da2218b2b60d8bba0719d 100644 |
--- a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h |
+++ b/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h |
@@ -36,6 +36,7 @@ |
#include "public/platform/modules/serviceworker/WebServiceWorkerClientsClaimCallbacks.h" |
#include "public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h" |
#include "public/platform/modules/serviceworker/WebServiceWorkerEventResult.h" |
+#include "public/platform/modules/serviceworker/WebServiceWorkerPreloadResponseCallbacks.h" |
#include "public/platform/modules/serviceworker/WebServiceWorkerSkipWaitingCallbacks.h" |
#include "public/web/WebDevToolsAgentClient.h" |
#include <v8.h> |
@@ -189,6 +190,13 @@ class WebServiceWorkerContextClient { |
WebServiceWorkerEventResult result, |
double eventDispatchTime) {} |
+ // ServiceWorker specific method. Called after a FetchEvent is created via |
+ // WebServiceWorkerContextProxy::dispatchFetchEvent() with |
+ // navigationPreloadSent flag set to register the preload response callback. |
+ virtual void registerPreloadResponseCallback( |
+ int eventID, |
+ std::unique_ptr<WebServiceWorkerPreloadResponseCallbacks>) {} |
+ |
// Ownership of the returned object is transferred to the caller. |
// This is called on the main thread. |
virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( |