summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Loader/ResourceLoader.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-15 21:33:37 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-15 21:46:26 +0200
commite2f32b8f9d4ce0ce8f92d4817273fb9b32cd8ccd (patch)
treebcc49c2fd5a87ffbfc992d0b1406b4c64e47941b /Libraries/LibWeb/Loader/ResourceLoader.h
parent1e96e46a8137e297d1d38271373145ac21f4da3e (diff)
downloadserenity-e2f32b8f9d4ce0ce8f92d4817273fb9b32cd8ccd.zip
LibCore: Make Core::Object properties more dynamic
Instead of everyone overriding save_to() and set_property() and doing a pretty asymmetric job of implementing the various properties, let's add a bit of structure here. Object properties are now represented by a Core::Property. Properties are registered with a getter and setter (optional) in constructors. I've added some convenience macros for creating and registering properties, but this does still feel a bit bulky. We'll have to iterate on this and see where it goes.
Diffstat (limited to 'Libraries/LibWeb/Loader/ResourceLoader.h')
-rw-r--r--Libraries/LibWeb/Loader/ResourceLoader.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/Libraries/LibWeb/Loader/ResourceLoader.h b/Libraries/LibWeb/Loader/ResourceLoader.h
index bd3591e5d9..7f6c62d0f9 100644
--- a/Libraries/LibWeb/Loader/ResourceLoader.h
+++ b/Libraries/LibWeb/Loader/ResourceLoader.h
@@ -59,8 +59,6 @@ private:
ResourceLoader();
static bool is_port_blocked(int port);
- virtual void save_to(JsonObject&) override;
-
int m_pending_loads { 0 };
RefPtr<Protocol::Client> m_protocol_client;