/* * Copyright (c) 2024-2025, Shannon Booth * * SPDX-License-Identifier: BSD-2-Clause */ #include namespace Web::StorageAPI { ReadonlySpan StorageEndpoint::registered_endpoints() { // https://storage.spec.whatwg.org/#registered-storage-endpoints static auto const endpoints = to_array({ { "caches"_string, StorageType::Local, {} }, { "indexedDB"_string, StorageType::Local, {} }, { "localStorage"_string, StorageType::Local, 5 * MiB }, { "serviceWorkerRegistrations"_string, StorageType::Local, {} }, { "sessionStorage"_string, StorageType::Session, 5 * MiB }, }); return endpoints; } }