ladybird/Userland/Libraries/LibWeb/XHR/XMLHttpRequestUpload.cpp
2023-11-28 17:15:27 -05:00

29 lines
710 B
C++

/*
* Copyright (c) 2023, Luke Wilde <lukew@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/Bindings/Intrinsics.h>
#include <LibWeb/Bindings/XMLHttpRequestUploadPrototype.h>
#include <LibWeb/XHR/XMLHttpRequestUpload.h>
namespace Web::XHR {
JS_DEFINE_ALLOCATOR(XMLHttpRequestUpload);
XMLHttpRequestUpload::XMLHttpRequestUpload(JS::Realm& realm)
: XMLHttpRequestEventTarget(realm)
{
}
XMLHttpRequestUpload::~XMLHttpRequestUpload() = default;
void XMLHttpRequestUpload::initialize(JS::Realm& realm)
{
Base::initialize(realm);
set_prototype(&Bindings::ensure_web_prototype<Bindings::XMLHttpRequestUploadPrototype>(realm, "XMLHttpRequestUpload"_fly_string));
}
}