mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-23 00:19:18 +00:00
This change follows the pattern of our cookies persistence implementation: the "browser" process is responsible for interacting with the sqlite database, and WebContent communicates all storage operations via IPC. The new database table uses (storage_endpoint, storage_key, bottle_key) as the primary key. This design follows concepts from the https://storage.spec.whatwg.org/ and is intended to support reuse of the persistence layer for other APIs (e.g., CacheStorage, IndexedDB). For now, `storage_endpoint` is always "localStorage", `storage_key` is the website's origin, and `bottle_key` is the name of the localStorage key. |
||
|---|---|---|
| .. | ||
| NavigatorStorage.cpp | ||
| NavigatorStorage.h | ||
| NavigatorStorage.idl | ||
| StorageBottle.cpp | ||
| StorageBottle.h | ||
| StorageEndpoint.cpp | ||
| StorageEndpoint.h | ||
| StorageKey.cpp | ||
| StorageKey.h | ||
| StorageManager.cpp | ||
| StorageManager.h | ||
| StorageManager.idl | ||
| StorageShed.cpp | ||
| StorageShed.h | ||
| StorageShelf.cpp | ||
| StorageShelf.h | ||
| StorageType.h | ||