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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.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/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h
index 524133ac757f2e09e42b575b47d69708b2dc79c3..794708f8e3ea9e8ff0192942cf94c057d45d8aed 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h
@@ -38,6 +38,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 "wtf/Forward.h"
#include "wtf/Noncopyable.h"
@@ -124,6 +125,12 @@ class MODULES_EXPORT ServiceWorkerGlobalScopeClient
const WebVector<WebURL>& subScopes,
const WebVector<WebSecurityOrigin>&) = 0;
+ // Registers the callback used to settle the FetchEvent.navigationPreload
+ // promise.
+ virtual void registerPreloadResponseCallback(
+ int eventID,
+ std::unique_ptr<WebServiceWorkerPreloadResponseCallbacks>) = 0;
+
static const char* supplementName();
static ServiceWorkerGlobalScopeClient* from(ExecutionContext*);

Powered by Google App Engine
This is Rietveld 408576698