1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 22:17:42 +00:00

LibWeb: Implement 'connection timing info' struct

This commit is contained in:
Linus Groh 2022-10-13 19:19:32 +02:00
parent cc6eaafe6b
commit 1f8ed8fca7
4 changed files with 96 additions and 0 deletions

View file

@ -0,0 +1,20 @@
/*
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibJS/Heap/Heap.h>
#include <LibJS/Runtime/VM.h>
#include <LibWeb/Fetch/Infrastructure/ConnectionTimingInfo.h>
namespace Web::Fetch::Infrastructure {
ConnectionTimingInfo::ConnectionTimingInfo() = default;
JS::NonnullGCPtr<ConnectionTimingInfo> ConnectionTimingInfo::create(JS::VM& vm)
{
return { *vm.heap().allocate_without_realm<ConnectionTimingInfo>() };
}
}