LibWebView: Add a command line option to override the User-Agent

This commit just adds a command line option to case-insensitively accept
a User-Agent name to use as the UA override. The UIs will individually
need to make use of this option.
This commit is contained in:
Timothy Flynn 2024-08-28 10:26:11 -04:00 committed by Tim Ledbetter
commit a04327a0c9
Notes: github-actions[bot] 2024-08-29 12:06:59 +00:00
4 changed files with 27 additions and 0 deletions

View file

@ -7,10 +7,13 @@
#pragma once
#include <AK/HashMap.h>
#include <AK/Optional.h>
#include <AK/StringView.h>
namespace WebView {
extern OrderedHashMap<StringView, StringView> const user_agents;
Optional<StringView> normalize_user_agent_name(StringView);
}