blob: 3d2124aa730d8e3a41bdbc279d419f0edf0b20d4 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// 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 ServiceWorker contexts.
// https://wicg.github.io/cookie-store/explainer.html
//
// See cookie_change_event.idl for the equivalent event in Document contexts.
[
Exposed=ServiceWorker
] interface ExtendableCookieChangeEvent : ExtendableEvent {
constructor(DOMString type, optional ExtendableCookieChangeEventInit eventInitDict = {});
[
MeasureAs=CookieStoreAPI, SameObject, SaveSameObject
] readonly attribute FrozenArray<CookieListItem> changed;
[
MeasureAs=CookieStoreAPI, SameObject, SaveSameObject
] readonly attribute FrozenArray<CookieListItem> deleted;
};