| // Copyright 2023 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| [ |
| ImplementedAs=DocumentStorageAccess, |
| RuntimeEnabled=StorageAccessAPIBeyondCookies |
| ] partial interface Document { |
| [ |
| CallWith=ScriptState, |
| NewObject, |
| MeasureAs=StorageAccessAPI_requestStorageAccess_BeyondCookies |
| ] Promise<StorageAccessHandle> requestStorageAccess(StorageAccessTypes types); |
| [ |
| CallWith=ScriptState, |
| NewObject, |
| MeasureAs=StorageAccessAPI_hasUnpartitionedCookieAccess |
| ] Promise<boolean> hasUnpartitionedCookieAccess(); |
| }; |