summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HighResolutionTime/Performance.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/HighResolutionTime/Performance.h')
-rw-r--r--Userland/Libraries/LibWeb/HighResolutionTime/Performance.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HighResolutionTime/Performance.h b/Userland/Libraries/LibWeb/HighResolutionTime/Performance.h
index 7848beedcc..c51d4ad080 100644
--- a/Userland/Libraries/LibWeb/HighResolutionTime/Performance.h
+++ b/Userland/Libraries/LibWeb/HighResolutionTime/Performance.h
@@ -30,6 +30,7 @@
#include <LibCore/ElapsedTimer.h>
#include <LibWeb/Bindings/Wrappable.h>
#include <LibWeb/DOM/EventTarget.h>
+#include <LibWeb/NavigationTiming/PerformanceTiming.h>
namespace Web::HighResolutionTime {
@@ -46,6 +47,8 @@ public:
double now() const { return m_timer.elapsed(); }
double time_origin() const;
+ RefPtr<NavigationTiming::PerformanceTiming> timing() { return *m_timing; }
+
virtual void ref_event_target() override;
virtual void unref_event_target() override;
@@ -55,6 +58,8 @@ public:
private:
DOM::Window& m_window;
Core::ElapsedTimer m_timer;
+
+ OwnPtr<NavigationTiming::PerformanceTiming> m_timing;
};
}