| Index: third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
|
| diff --git a/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h b/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
|
| index 980fa38bdd991732220755652a3079a7bbad168b..b8f755021d703f64c2c1d15935f23dc2ab851d60 100644
|
| --- a/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
|
| +++ b/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
|
| @@ -32,6 +32,8 @@ class WebServiceWorkerRegistration {
|
| using WebGetNavigationPreloadStateCallbacks =
|
| WebCallbacks<const WebNavigationPreloadState&,
|
| const WebServiceWorkerError&>;
|
| + using WebSetNavigationPreloadHeaderCallbacks =
|
| + WebCallbacks<void, const WebServiceWorkerError&>;
|
|
|
| // The handle interface that retains a reference to the implementation of
|
| // WebServiceWorkerRegistration in the embedder and is owned by
|
| @@ -60,6 +62,10 @@ class WebServiceWorkerRegistration {
|
| virtual void getNavigationPreloadState(
|
| WebServiceWorkerProvider*,
|
| std::unique_ptr<WebGetNavigationPreloadStateCallbacks>) {}
|
| + virtual void setNavigationPreloadHeader(
|
| + const WebString& value,
|
| + WebServiceWorkerProvider*,
|
| + std::unique_ptr<WebSetNavigationPreloadHeaderCallbacks>) {}
|
| };
|
|
|
| } // namespace blink
|
|
|