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

// Copyright 2019 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;

// Describes whether a controller service worker exists and if it has a fetch
// handler.
// TODO(crbug.com/1368415): clean up ControllerServiceWorkerMode.
enum ControllerServiceWorkerMode {
  // No controller exists.
  kNoController,
  // The controller exists, but it has no fetch event handler.
  kNoFetchEventHandler,
  // The controller exists and it has a fetch event handler.
  kControlled
};