Skip to content

Truly independent web browser

860 B
Raw Blame
/*
 * Copyright (c) 2022-2023, Linus Groh <[email protected]>
 * Copyright (c) 2022, Luke Wilde <[email protected]>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <AK/Forward.h>
#include <LibURL/Forward.h>
#include <LibWeb/Forward.h>
#include <LibWebCommon/Fetch/Infrastructure/RedirectTaint.h>
#include <LibWebCommon/Forward.h>

namespace Web::Fetch::Infrastructure {

// The default value takes the site-compatibility rules of a top-level site and of the site of the document or worker.
[[nodiscard]] String default_user_agent_value(LoaderConfig const&, URL::Origin const& top_level_origin, URL::Origin const& origin);
[[nodiscard]] String default_user_agent_value(LoaderConfig const&, Request const&);
[[nodiscard]] String environment_default_user_agent_value(LoaderConfig const&, HTML::EnvironmentSettingsObject const&);

}