GeneratedPagesLoader.h 633 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2023, Bastiaan van der Plaat <bastiaan.v.d.plaat@gmail.com>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/Fetch/Infrastructure/HTTP/Responses.h>
  8. #include <LibWeb/Loader/Resource.h>
  9. namespace Web {
  10. static String s_chrome_process_command_line {};
  11. static String s_chrome_process_executable_path {};
  12. void set_chrome_process_command_line(StringView command_line);
  13. void set_chrome_process_executable_path(StringView executable_path);
  14. ErrorOr<String> load_error_page(URL const&);
  15. ErrorOr<String> load_file_directory_page(URL const&);
  16. ErrorOr<String> load_about_version_page();
  17. }