chromium/third_party/blink/public/mojom/service_worker/service_worker_fetch_handler_bypass_option.mojom

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module blink.mojom;

// Experimental feature (crbug.com/1371756). Not followed by the spec.
//
// Indicates the service worker fetch handler can be skipped. Independent from
// ServiceWorkerFetchHandlerType, since the fetch handler can be skipped based
// on the feature enabling, even if the fetch handler type is labeled as not
// skippable.
enum ServiceWorkerFetchHandlerBypassOption {
  kDefault,
  kBypassOnlyIfServiceWorkerNotStarted,
  kRaceNetworkRequest,
  kRaceNetworkRequestHoldback,
  kAutoPreload,
};