blob: 7c830b656df18df9c8985507483c4dc22863aa25 [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:
] interface NavigationPreloadManager {
// TODO(mgiuca): Put SecureContext on the interface, not individual methods.
// Currently prevented due to clash with OriginTrialEnabled. This can be
// resolved either when OriginTrialEnabled is removed, or
// is fixed.
[SecureContext, CallWith=ScriptState] Promise<void> enable();
[SecureContext, CallWith=ScriptState] Promise<void> disable();
[SecureContext, CallWith=ScriptState] Promise<void> setHeaderValue(ByteString value);
[SecureContext, CallWith=ScriptState] Promise<NavigationPreloadState> getState();