blob: 60357c6ed7f53270210b71477d17dd521635a2bd [file] [log] [blame]
// Copyright 2020 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.
module network.mojom;
// A loading mode which may be supported by the document resource.
enum LoadingMode {
// The ordinary loading mode.
kDefault,
// A mode in which a response fetched without credentials and with other
// measures taken to obscure the user's identity may be used for navigation,
// even if credentials exist. The document should, if necessary, personalize
// itself when it loads, dynamically.
kUncredentialedPrefetch,
// A mode similar to (and implying the requirements of)
// kUncredentialedPrefetch, but where the document may load and execute
// script before navigation. The document should, if necessary, personalize
// itself after loading when credentials become available, dynamically.
kUncredentialedPrerender,
};
// https://github.com/jeremyroman/alternate-loading-modes/blob/gh-pages/opt-in.md
struct SupportsLoadingMode {
array<LoadingMode> supported_modes;
};