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>
|
2021-12-09 12:42:09 +01:00
|
|
|
#include <LibWeb/DOM/Window.h>
|
2021-01-18 15:06:13 +01:00
|
|
|
|
|
|
|
|
namespace Web::NavigationTiming {
|
|
|
|
|
|
2021-12-09 12:42:09 +01:00
|
|
|
class PerformanceTiming final
|
|
|
|
|
: public RefCountForwarder<DOM::Window>
|
|
|
|
|
, 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
|
|
|
|
|
|
|
|
explicit PerformanceTiming(DOM::Window&);
|
|
|
|
|
~PerformanceTiming();
|
|
|
|
|
|
|
|
|
|
u32 navigation_start() { return 0; }
|
|
|
|
|
u32 unload_event_start() { return 0; }
|
|
|
|
|
u32 unload_event_end() { return 0; }
|
|
|
|
|
u32 redirect_start() { return 0; }
|
|
|
|
|
u32 redirect_end() { return 0; }
|
|
|
|
|
u32 fetch_start() { return 0; }
|
|
|
|
|
u32 domain_lookup_start() { return 0; }
|
|
|
|
|
u32 domain_lookup_end() { return 0; }
|
|
|
|
|
u32 connect_start() { return 0; }
|
|
|
|
|
u32 connect_end() { return 0; }
|
|
|
|
|
u32 secure_connection_start() { return 0; }
|
|
|
|
|
u32 request_start() { return 0; }
|
|
|
|
|
u32 response_start() { return 0; }
|
|
|
|
|
u32 response_end() { return 0; }
|
|
|
|
|
u32 dom_loading() { return 0; }
|
|
|
|
|
u32 dom_interactive() { return 0; }
|
|
|
|
|
u32 dom_content_loaded_event_start() { return 0; }
|
|
|
|
|
u32 dom_content_loaded_event_end() { return 0; }
|
|
|
|
|
u32 dom_complete() { return 0; }
|
|
|
|
|
u32 load_event_start() { return 0; }
|
|
|
|
|
u32 load_event_end() { return 0; }
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|