diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/Scripting/Script.h')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/Scripting/Script.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Scripting/Script.h b/Userland/Libraries/LibWeb/HTML/Scripting/Script.h new file mode 100644 index 0000000000..4781a621ad --- /dev/null +++ b/Userland/Libraries/LibWeb/HTML/Scripting/Script.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2021, Andreas Kling <kling@serenityos.org> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include <AK/RefCounted.h> +#include <AK/URL.h> + +namespace Web::HTML { + +// https://html.spec.whatwg.org/multipage/webappapis.html#concept-script +class Script : public RefCounted<Script> { +public: + virtual ~Script(); + + URL const& base_url() const { return m_base_url; } + +protected: + explicit Script(URL base_url); + +private: + URL m_base_url; +}; + +} |