mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
29 lines
710 B
C++
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));
|
|
}
|
|
|
|
}
|