summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/cookie_store/cookie_store_manager.idl
blob: 8876f55c5e1b63e14ccac0e6e185ae38f515afd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2019 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.

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

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

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

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