LibWeb: Implement NavigatorStorage mixin interface

Co-authored-by: Tim Flynn <trflynn89@serenityos.org>
This commit is contained in:
Jamie Mansfield 2024-08-13 20:56:19 +01:00 committed by Tim Flynn
commit e3b3041a0c
Notes: github-actions[bot] 2024-08-16 15:23:10 +00:00
12 changed files with 93 additions and 3 deletions

View file

@ -122,6 +122,8 @@ public:
SerializedEnvironmentSettingsObject serialize();
JS::NonnullGCPtr<StorageAPI::StorageManager> storage_manager();
protected:
explicit EnvironmentSettingsObject(NonnullOwnPtr<JS::ExecutionContext>);
@ -143,6 +145,10 @@ private:
// https://fetch.spec.whatwg.org/#concept-fetch-record
// A fetch group holds an ordered list of fetch records
Vector<JS::NonnullGCPtr<Fetch::Infrastructure::FetchRecord>> m_fetch_group;
// https://storage.spec.whatwg.org/#api
// Each environment settings object has an associated StorageManager object.
JS::GCPtr<StorageAPI::StorageManager> m_storage_manager;
};
EnvironmentSettingsObject& incumbent_settings_object();