Coverage Report

Created: 2025-08-28 06:26

/src/serenity/Userland/Libraries/LibWeb/HTML/NavigatorBeacon.h
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright (c) 2023, Bastiaan van der Plaat <bastiaan.v.d.plaat@gmail.com>
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#pragma once
8
9
#include <LibWeb/Fetch/BodyInit.h>
10
#include <LibWeb/HTML/Navigator.h>
11
#include <LibWeb/WebIDL/ExceptionOr.h>
12
13
namespace Web::HTML {
14
15
class NavigatorBeaconMixin {
16
public:
17
    WebIDL::ExceptionOr<bool> send_beacon(String const& url, Optional<Fetch::BodyInit> const& data = {});
18
19
private:
20
0
    virtual ~NavigatorBeaconMixin() = default;
21
22
    friend class Navigator;
23
};
24
25
}