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:
Timothy Flynn 2025-10-07 14:35:22 -04:00 committed by Andreas Kling
parent e433dee543
commit 187d02c45d
Notes: github-actions[bot] 2025-10-14 11:42:04 +00:00
13 changed files with 68 additions and 45 deletions

View file

@ -12,6 +12,7 @@
#include <AK/Swift.h>
#include <LibCore/EventLoop.h>
#include <LibCore/Forward.h>
#include <LibDatabase/Forward.h>
#include <LibDevTools/DevToolsDelegate.h>
#include <LibDevTools/Forward.h>
#include <LibImageDecoderClient/Client.h>
@ -181,7 +182,7 @@ private:
RefPtr<WebContentClient> m_spare_web_content_process;
bool m_has_queued_task_to_launch_spare_web_content_process { false };
RefPtr<Database> m_database;
RefPtr<Database::Database> m_database;
OwnPtr<CookieJar> m_cookie_jar;
OwnPtr<StorageJar> m_storage_jar;