#include "net/url_request/redirect_info.h"
#include <string_view>
#include "base/metrics/histogram_macros.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "net/url_request/url_request_job.h"
namespace net {
namespace {
std::string ComputeMethodForRedirect(const std::string& method,
int http_status_code) { … }
ReferrerPolicy ProcessReferrerPolicyHeaderOnRedirect(
ReferrerPolicy original_referrer_policy,
const std::optional<std::string>& referrer_policy_header) { … }
}
RedirectInfo::RedirectInfo() = default;
RedirectInfo::RedirectInfo(const RedirectInfo& other) = default;
RedirectInfo::~RedirectInfo() = default;
RedirectInfo RedirectInfo::ComputeRedirectInfo(
const std::string& original_method,
const GURL& original_url,
const SiteForCookies& original_site_for_cookies,
RedirectInfo::FirstPartyURLPolicy original_first_party_url_policy,
ReferrerPolicy original_referrer_policy,
const std::string& original_referrer,
int http_status_code,
const GURL& new_location,
const std::optional<std::string>& referrer_policy_header,
bool insecure_scheme_was_upgraded,
bool copy_fragment,
bool is_signed_exchange_fallback_redirect) { … }
}