chromium/third_party/blink/renderer/modules/cookie_store/cookie_store_manager.idl

// 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.

// https://wicg.github.io/cookie-store/explainer.html#the-change-events-api

[
  Exposed=(ServiceWorker,Window),
  SecureContext
] interface CookieStoreManager {
  [CallWith=ScriptState, MeasureAs=CookieStoreAPI, RaisesException]
  Promise<undefined> subscribe(sequence<CookieStoreGetOptions> subscriptions);

  [CallWith=ScriptState, MeasureAs=CookieStoreAPI, RaisesException]
  Promise<sequence<CookieStoreGetOptions>> getSubscriptions();

  [CallWith=ScriptState, MeasureAs=CookieStoreAPI, RaisesException]
  Promise<undefined> unsubscribe(sequence<CookieStoreGetOptions> subscriptions);
};