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

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

Issue 2416843002: Implement FetchEvent.navigationPreload (Closed)
Patch Set: 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..24af141c99c65bcdc7877bb01be378e6ab009c80 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 responce callback.
falken 2016/10/19 06:00:13 nit: response
horo 2016/10/19 07:11:45 Done.
+ virtual void registerPreloadResponseCallback(
+ int eventID,
+ 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