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

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

// Used to signal cookie changes to Document contexts.
// https://wicg.github.io/cookie-store/explainer.html
//
// See extendable_cookie_change_event.idl for the equivalent event in
// ServiceWorker contexts.

[
  Exposed=Window,
  SecureContext
] interface CookieChangeEvent : Event {
  constructor(DOMString type, optional CookieChangeEventInit eventInitDict = {});
  [
    MeasureAs=CookieStoreAPI, SameObject, SaveSameObject
  ] readonly attribute FrozenArray<CookieListItem> changed;
  [
    MeasureAs=CookieStoreAPI, SameObject, SaveSameObject
  ] readonly attribute FrozenArray<CookieListItem> deleted;
};