mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 07:33:20 +00:00
LibDatabase+LibWebView: Extract our SQLite wrapper to its own library
It currently lives in LibWebView as it was only used for cookies and local storage, both of which are managed in the UI process. Let's move it to its own library now to allow other processes to use it, without having to depend on LibWebView (and therefore LibWeb).
This commit is contained in:
parent
e433dee543
commit
187d02c45d
Notes:
github-actions[bot]
2025-10-14 11:42:04 +00:00
Author: https://github.com/trflynn89
Commit: 187d02c45d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6435
13 changed files with 68 additions and 45 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <AK/NonnullOwnPtr.h>
|
||||
#include <AK/StdLibExtras.h>
|
||||
#include <LibDatabase/Database.h>
|
||||
#include <LibWebView/StorageJar.h>
|
||||
|
||||
namespace WebView {
|
||||
|
@ -13,7 +14,7 @@ namespace WebView {
|
|||
// Quota size is specified in https://storage.spec.whatwg.org/#registered-storage-endpoints
|
||||
static constexpr size_t LOCAL_STORAGE_QUOTA = 5 * MiB;
|
||||
|
||||
ErrorOr<NonnullOwnPtr<StorageJar>> StorageJar::create(Database& database)
|
||||
ErrorOr<NonnullOwnPtr<StorageJar>> StorageJar::create(Database::Database& database)
|
||||
{
|
||||
Statements statements {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue