#include "services/network/public/cpp/cross_origin_embedder_policy_parser.h"
#include <algorithm>
#include <optional>
#include <string_view>
#include <utility>
#include "net/http/http_response_headers.h"
#include "net/http/structured_headers.h"
#include "services/network/public/cpp/cross_origin_embedder_policy.h"
namespace network {
namespace {
constexpr char kHeaderName[] = …;
constexpr char kReportOnlyHeaderName[] = …;
std::pair<mojom::CrossOriginEmbedderPolicyValue, std::optional<std::string>>
Parse(std::string_view header_value) { … }
}
CrossOriginEmbedderPolicy ParseCrossOriginEmbedderPolicy(
const net::HttpResponseHeaders& headers) { … }
}