mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-06-17 15:25:35 +00:00
Firefox keeps the Storage panel current by sending store update packets when localStorage or sessionStorage changes. Forward successful Web Storage mutations to the storage actors and emit the matching update or clear packet. Use listener IDs for storage updates so the local and session storage actors can subscribe independently.
23 lines
546 B
C++
23 lines
546 B
C++
/*
|
|
* Copyright (c) 2026, Ladybird contributors
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Error.h>
|
|
#include <AK/JsonObject.h>
|
|
#include <AK/Optional.h>
|
|
#include <AK/String.h>
|
|
#include <LibDevTools/Forward.h>
|
|
|
|
namespace DevTools {
|
|
|
|
DEVTOOLS_API Optional<String> storage_host_for_url(String const&);
|
|
DEVTOOLS_API Optional<String> storage_host_name(String const&);
|
|
|
|
JsonObject to_storage_operation_result(Optional<String> const& error_string);
|
|
JsonObject to_storage_operation_result(ErrorOr<void> const& result);
|
|
|
|
}
|