| 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*);
|
|
|
|
|