mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-02 22:29:10 +00:00
AK+Everywhere: Store JSON strings as String
This commit is contained in:
parent
e591636419
commit
bc54c0cdfb
Notes:
github-actions[bot]
2025-02-21 00:29:21 +00:00
Author: https://github.com/trflynn89
Commit: bc54c0cdfb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3631
Reviewed-by: https://github.com/awesomekling ✅
33 changed files with 163 additions and 152 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <AK/ByteString.h>
|
||||
#include <AK/Optional.h>
|
||||
#include <AK/RefCounted.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <AK/WeakPtr.h>
|
||||
|
@ -24,7 +25,7 @@ class Actor
|
|||
public:
|
||||
virtual ~Actor();
|
||||
|
||||
ByteString const& name() const { return m_name; }
|
||||
String const& name() const { return m_name; }
|
||||
virtual void handle_message(StringView type, JsonObject const&) = 0;
|
||||
|
||||
class [[nodiscard]] BlockToken {
|
||||
|
@ -57,7 +58,7 @@ protected:
|
|||
|
||||
private:
|
||||
DevToolsServer& m_devtools;
|
||||
ByteString m_name;
|
||||
String m_name;
|
||||
|
||||
Vector<JsonValue> m_blocked_responses;
|
||||
bool m_block_responses { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue