blob: 4f3450c4a8bf02e11fbd890594af48ab79e7ecfe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/*
* Copyright (c) 2021, Luke Wilde <lukew@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/DOM/AbortController.h>
#include <LibWeb/DOM/AbortSignal.h>
namespace Web::DOM {
// https://dom.spec.whatwg.org/#dom-abortcontroller-abortcontroller
AbortController::AbortController(Document& document)
: m_signal(AbortSignal::create(document))
{
}
AbortController::~AbortController()
{
}
// https://dom.spec.whatwg.org/#dom-abortcontroller-abort
void AbortController::abort()
{
m_signal->signal_abort();
}
}
|