| // Copyright 2017 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://github.com/WICG/async-cookies-api/blob/gh-pages/explainer.md |
| |
| [ |
| Exposed=Window, |
| RuntimeEnabled=AsyncCookies |
| ] interface CookieStore { |
| // https://github.com/WICG/async-cookies-api/blob/gh-pages/explainer.md#reading |
| [CallWith=ScriptState, RaisesException] Promise<CookieList?> getAll( |
| optional CookieStoreGetOptions options); |
| |
| // https://github.com/WICG/async-cookies-api/blob/gh-pages/explainer.md#writing |
| [CallWith=ScriptState, RaisesException] Promise<void> set( |
| DOMString name, DOMString value, optional CookieStoreSetOptions options); |
| |
| // TODO(crbug.com/729800): Implement the other operations in the spec. |
| }; |