mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-12 17:45:49 +08:00
Signed-off-by: Victor Porof <victorporof@chromium.org> Bug: 1325812 Change-Id: I044170880d20ce0402062755787cccafd63c6a42 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3695370 Reviewed-by: Mathias Bynens <mathias@chromium.org>
111 lines
3.0 KiB
Plaintext
111 lines
3.0 KiB
Plaintext
// GENERATED CONTENT - DO NOT EDIT
|
|
// Content was automatically extracted by Reffy into webref
|
|
// (https://github.com/w3c/webref)
|
|
// Source: Cookie Store API (https://wicg.github.io/cookie-store/)
|
|
|
|
[Exposed=(ServiceWorker,Window),
|
|
SecureContext]
|
|
interface CookieStore : EventTarget {
|
|
Promise<CookieListItem?> get(USVString name);
|
|
Promise<CookieListItem?> get(optional CookieStoreGetOptions options = {});
|
|
|
|
Promise<CookieList> getAll(USVString name);
|
|
Promise<CookieList> getAll(optional CookieStoreGetOptions options = {});
|
|
|
|
Promise<undefined> set(USVString name, USVString value);
|
|
Promise<undefined> set(CookieInit options);
|
|
|
|
Promise<undefined> delete(USVString name);
|
|
Promise<undefined> delete(CookieStoreDeleteOptions options);
|
|
|
|
[Exposed=Window]
|
|
attribute EventHandler onchange;
|
|
};
|
|
|
|
dictionary CookieStoreGetOptions {
|
|
USVString name;
|
|
USVString url;
|
|
};
|
|
|
|
enum CookieSameSite {
|
|
"strict",
|
|
"lax",
|
|
"none"
|
|
};
|
|
|
|
dictionary CookieInit {
|
|
required USVString name;
|
|
required USVString value;
|
|
DOMTimeStamp? expires = null;
|
|
USVString? domain = null;
|
|
USVString path = "/";
|
|
CookieSameSite sameSite = "strict";
|
|
};
|
|
|
|
dictionary CookieStoreDeleteOptions {
|
|
required USVString name;
|
|
USVString? domain = null;
|
|
USVString path = "/";
|
|
};
|
|
|
|
dictionary CookieListItem {
|
|
USVString name;
|
|
USVString value;
|
|
USVString? domain;
|
|
USVString path;
|
|
DOMTimeStamp? expires;
|
|
boolean secure;
|
|
CookieSameSite sameSite;
|
|
};
|
|
|
|
typedef sequence<CookieListItem> CookieList;
|
|
|
|
[Exposed=(ServiceWorker,Window),
|
|
SecureContext]
|
|
interface CookieStoreManager {
|
|
Promise<undefined> subscribe(sequence<CookieStoreGetOptions> subscriptions);
|
|
Promise<sequence<CookieStoreGetOptions>> getSubscriptions();
|
|
Promise<undefined> unsubscribe(sequence<CookieStoreGetOptions> subscriptions);
|
|
};
|
|
|
|
[Exposed=(ServiceWorker,Window)]
|
|
partial interface ServiceWorkerRegistration {
|
|
[SameObject] readonly attribute CookieStoreManager cookies;
|
|
};
|
|
|
|
[Exposed=Window,
|
|
SecureContext]
|
|
interface CookieChangeEvent : Event {
|
|
constructor(DOMString type, optional CookieChangeEventInit eventInitDict = {});
|
|
[SameObject] readonly attribute FrozenArray<CookieListItem> changed;
|
|
[SameObject] readonly attribute FrozenArray<CookieListItem> deleted;
|
|
};
|
|
|
|
dictionary CookieChangeEventInit : EventInit {
|
|
CookieList changed;
|
|
CookieList deleted;
|
|
};
|
|
|
|
[Exposed=ServiceWorker]
|
|
interface ExtendableCookieChangeEvent : ExtendableEvent {
|
|
constructor(DOMString type, optional ExtendableCookieChangeEventInit eventInitDict = {});
|
|
[SameObject] readonly attribute FrozenArray<CookieListItem> changed;
|
|
[SameObject] readonly attribute FrozenArray<CookieListItem> deleted;
|
|
};
|
|
|
|
dictionary ExtendableCookieChangeEventInit : ExtendableEventInit {
|
|
CookieList changed;
|
|
CookieList deleted;
|
|
};
|
|
|
|
[SecureContext]
|
|
partial interface Window {
|
|
[SameObject] readonly attribute CookieStore cookieStore;
|
|
};
|
|
|
|
partial interface ServiceWorkerGlobalScope {
|
|
[SameObject] readonly attribute CookieStore cookieStore;
|
|
|
|
attribute EventHandler oncookiechange;
|
|
};
|