summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/cookie_store/cookie_change_event.idl
blob: 1952c034d4f92aedc32b1b13e9d3c3d8a56c6955 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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 Document contexts.
// https://github.com/WICG/async-cookies-api/blob/gh-pages/explainer.md
//
// See extendable_cookie_change_event.idl for the equivalent event in
// ServiceWorker contexts.

[
  Exposed=Window,
  RuntimeEnabled=AsyncCookies,
  Constructor(DOMString type, optional CookieChangeEventInit eventInitDict)
] interface CookieChangeEvent : Event {
  [Measure] readonly attribute CookieList changed;
  [Measure] readonly attribute CookieList deleted;
};