#include "services/network/public/cpp/no_vary_search_header_parser.h"
#include <optional>
#include "base/strings/stringprintf.h"
#include "base/types/expected_macros.h"
#include "net/http/http_no_vary_search_data.h"
#include "services/network/public/mojom/no_vary_search.mojom.h"
namespace network {
namespace {
const char kNoVarySearchSpecProposalUrl[] = …;
const char kRFC8941DictionaryDefinitionUrl[] = …;
}
mojom::NoVarySearchWithParseErrorPtr ParseNoVarySearch(
const net::HttpResponseHeaders& headers) { … }
std::optional<std::string> GetNoVarySearchConsoleMessage(
const mojom::NoVarySearchParseError& error,
const GURL& preloaded_url) { … }
std::optional<std::string> GetNoVarySearchHintConsoleMessage(
const mojom::NoVarySearchParseError& error) { … }
}