#include "services/network/public/cpp/supports_loading_mode/supports_loading_mode_parser.h"
#include <optional>
#include <ranges>
#include "base/ranges/algorithm.h"
#include "net/http/http_response_headers.h"
#include "net/http/structured_headers.h"
#include "services/network/public/mojom/supports_loading_mode.mojom.h"
namespace network {
namespace {
constexpr std::string_view kSupportsLoadingMode = …;
constexpr struct KnownLoadingMode { … } kKnownLoadingModes[] = …;
}
mojom::SupportsLoadingModePtr ParseSupportsLoadingMode(
std::string_view header_value) { … }
mojom::SupportsLoadingModePtr ParseSupportsLoadingMode(
const net::HttpResponseHeaders& headers) { … }
}