/* * Copyright (c) 2021, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace Web::XHR { class XMLHttpRequestEventTarget : public DOM::EventTarget , public Bindings::Wrappable { public: using WrapperType = Bindings::XMLHttpRequestEventTargetWrapper; virtual ~XMLHttpRequestEventTarget() override {}; protected: explicit XMLHttpRequestEventTarget(Bindings::ScriptExecutionContext& script_execution_context) : DOM::EventTarget(script_execution_context) { } private: virtual JS::Object* create_wrapper(JS::GlobalObject& global_object) override { return wrap(global_object, *this); } }; }