PerformanceTiming.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/StdLibExtras.h>
  8. #include <LibWeb/Bindings/Wrappable.h>
  9. namespace Web::NavigationTiming {
  10. class PerformanceTiming final : public Bindings::Wrappable {
  11. public:
  12. using WrapperType = Bindings::PerformanceTimingWrapper;
  13. using AllowOwnPtr = TrueType;
  14. explicit PerformanceTiming(DOM::Window&);
  15. ~PerformanceTiming();
  16. void ref();
  17. void unref();
  18. u32 navigation_start() { return 0; }
  19. u32 unload_event_start() { return 0; }
  20. u32 unload_event_end() { return 0; }
  21. u32 redirect_start() { return 0; }
  22. u32 redirect_end() { return 0; }
  23. u32 fetch_start() { return 0; }
  24. u32 domain_lookup_start() { return 0; }
  25. u32 domain_lookup_end() { return 0; }
  26. u32 connect_start() { return 0; }
  27. u32 connect_end() { return 0; }
  28. u32 secure_connection_start() { return 0; }
  29. u32 request_start() { return 0; }
  30. u32 response_start() { return 0; }
  31. u32 response_end() { return 0; }
  32. u32 dom_loading() { return 0; }
  33. u32 dom_interactive() { return 0; }
  34. u32 dom_content_loaded_event_start() { return 0; }
  35. u32 dom_content_loaded_event_end() { return 0; }
  36. u32 dom_complete() { return 0; }
  37. u32 load_event_start() { return 0; }
  38. u32 load_event_end() { return 0; }
  39. private:
  40. DOM::Window& m_window;
  41. };
  42. }