blob: 09a6b712fee013d9400bf485299218d4901ec529 [file] [log] [blame]
// 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();
};