blob: 3ae8a0c237703eee59171e2af6a3f992c513ddfd [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// TODO(falken): Revise link when this lands in the spec:
// https://github.com/w3c/ServiceWorker/issues/920
[
RuntimeEnabled=ServiceWorkerNavigationPreload,
SecureContext,
Exposed=(Window,Worker),
] interface NavigationPreloadManager {
[CallWith=ScriptState] Promise<void> enable();
[CallWith=ScriptState] Promise<void> disable();
[CallWith=ScriptState] Promise<void> setHeaderValue(ByteString value);
[CallWith=ScriptState] Promise<NavigationPreloadState> getState();
};