#include "net/http/http_no_vary_search_data.h"
#include <string_view>
#include "base/containers/contains.h"
#include "base/containers/flat_set.h"
#include "base/types/expected.h"
#include "net/base/url_search_params.h"
#include "net/base/url_util.h"
#include "net/http/http_response_headers.h"
#include "net/http/structured_headers.h"
#include "url/gurl.h"
namespace net {
namespace {
std::optional<std::vector<std::string>> ParseStringList(
const std::vector<structured_headers::ParameterizedItem>& items) { … }
}
HttpNoVarySearchData::HttpNoVarySearchData() = default;
HttpNoVarySearchData::HttpNoVarySearchData(const HttpNoVarySearchData&) =
default;
HttpNoVarySearchData::HttpNoVarySearchData(HttpNoVarySearchData&&) = default;
HttpNoVarySearchData::~HttpNoVarySearchData() = default;
HttpNoVarySearchData& HttpNoVarySearchData::operator=(
const HttpNoVarySearchData&) = default;
HttpNoVarySearchData& HttpNoVarySearchData::operator=(HttpNoVarySearchData&&) =
default;
bool HttpNoVarySearchData::AreEquivalent(const GURL& a, const GURL& b) const { … }
HttpNoVarySearchData HttpNoVarySearchData::CreateFromNoVaryParams(
const std::vector<std::string>& no_vary_params,
bool vary_on_key_order) { … }
HttpNoVarySearchData HttpNoVarySearchData::CreateFromVaryParams(
const std::vector<std::string>& vary_params,
bool vary_on_key_order) { … }
base::expected<HttpNoVarySearchData, HttpNoVarySearchData::ParseErrorEnum>
HttpNoVarySearchData::ParseFromHeaders(
const HttpResponseHeaders& response_headers) { … }
const base::flat_set<std::string>& HttpNoVarySearchData::no_vary_params()
const { … }
const base::flat_set<std::string>& HttpNoVarySearchData::vary_params() const { … }
bool HttpNoVarySearchData::vary_on_key_order() const { … }
bool HttpNoVarySearchData::vary_by_default() const { … }
base::expected<HttpNoVarySearchData, HttpNoVarySearchData::ParseErrorEnum>
HttpNoVarySearchData::ParseNoVarySearchDictionary(
const structured_headers::Dictionary& dict) { … }
}