2021-01-18 15:06:13 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
|
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2021-01-18 15:06:13 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2021-12-09 12:42:09 +01:00
|
|
|
#include <AK/RefCountForwarder.h>
|
2021-01-18 15:06:13 +01:00
|
|
|
#include <AK/StdLibExtras.h>
|
|
|
|
|
#include <LibWeb/Bindings/Wrappable.h>
|
2022-03-07 23:08:26 +01:00
|
|
|
#include <LibWeb/HTML/Window.h>
|
2021-01-18 15:06:13 +01:00
|
|
|
|
|
|
|
|
namespace Web::NavigationTiming {
|
|
|
|
|
|
2021-12-09 12:42:09 +01:00
|
|
|
class PerformanceTiming final
|
2022-03-07 23:08:26 +01:00
|
|
|
: public RefCountForwarder<HTML::Window>
|
2021-12-09 12:42:09 +01:00
|
|
|
, public Bindings::Wrappable {
|
2021-01-18 15:06:13 +01:00
|
|
|
public:
|
|
|
|
|
using WrapperType = Bindings::PerformanceTimingWrapper;
|
2021-04-10 18:29:06 +04:30
|
|
|
using AllowOwnPtr = TrueType;
|
2021-01-18 15:06:13 +01:00
|
|
|
|
2022-03-07 23:08:26 +01:00
|
|
|
explicit PerformanceTiming(HTML::Window&);
|
2021-01-18 15:06:13 +01:00
|
|
|
~PerformanceTiming();
|
|
|
|
|
|
2022-05-10 11:08:02 +02:00
|
|
|
u64 navigation_start() { return 0; }
|
|
|
|
|
u64 unload_event_start() { return 0; }
|
|
|
|
|
u64 unload_event_end() { return 0; }
|
|
|
|
|
u64 redirect_start() { return 0; }
|
|
|
|
|
u64 redirect_end() { return 0; }
|
|
|
|
|
u64 fetch_start() { return 0; }
|
|
|
|
|
u64 domain_lookup_start() { return 0; }
|
|
|
|
|
u64 domain_lookup_end() { return 0; }
|
|
|
|
|
u64 connect_start() { return 0; }
|
|
|
|
|
u64 connect_end() { return 0; }
|
|
|
|
|
u64 secure_connection_start() { return 0; }
|
|
|
|
|
u64 request_start() { return 0; }
|
|
|
|
|
u64 response_start() { return 0; }
|
|
|
|
|
u64 response_end() { return 0; }
|
|
|
|
|
u64 dom_loading() { return 0; }
|
|
|
|
|
u64 dom_interactive() { return 0; }
|
|
|
|
|
u64 dom_content_loaded_event_start() { return 0; }
|
|
|
|
|
u64 dom_content_loaded_event_end() { return 0; }
|
|
|
|
|
u64 dom_complete() { return 0; }
|
|
|
|
|
u64 load_event_start() { return 0; }
|
|
|
|
|
u64 load_event_end() { return 0; }
|
2021-01-18 15:06:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|