chromium/third_party/blink/renderer/modules/service_worker/client_query_options.idl

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

// https://w3c.github.io/ServiceWorker/#enumdef-clienttype
enum ClientType {
    "window",
    "worker",
    "sharedworker",
    "all"
};

// https://wicg.github.io/page-lifecycle/#serviceworker-clients-dfn
enum ClientLifecycleStateQuery {
    "active",
    "frozen",
    "all"
};

// https://w3c.github.io/ServiceWorker/#dictdef-clientqueryoptions
dictionary ClientQueryOptions {
    boolean includeUncontrolled = false;
    ClientType type = "window";
};