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

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

Issue 2416843002: Implement FetchEvent.navigationPreload (Closed)
Patch Set: incorporated falken's comment Created 4 years, 2 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/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(

Powered by Google App Engine
This is Rietveld 408576698