2023-09-18 18:29:51 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2023, Bastiaan van der Plaat <bastiaan.v.d.plaat@gmail.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <LibWeb/Fetch/BodyInit.h>
|
|
|
|
#include <LibWeb/WebIDL/ExceptionOr.h>
|
|
|
|
|
|
|
|
namespace Web::HTML {
|
|
|
|
|
2025-07-22 12:54:35 +02:00
|
|
|
class NavigatorBeaconPartial {
|
2023-09-18 18:29:51 +02:00
|
|
|
public:
|
|
|
|
WebIDL::ExceptionOr<bool> send_beacon(String const& url, Optional<Fetch::BodyInit> const& data = {});
|
|
|
|
|
|
|
|
private:
|
2025-07-22 12:54:35 +02:00
|
|
|
virtual ~NavigatorBeaconPartial() = default;
|
2023-09-18 18:29:51 +02:00
|
|
|
|
|
|
|
friend class Navigator;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|