#include "services/network/public/cpp/request_destination.h"
#include <string_view>
#include "base/containers/fixed_flat_map.h"
namespace network {
namespace {
constexpr char kEmpty[] = …;
constexpr char kAudio[] = …;
constexpr char kAudioWorklet[] = …;
constexpr char kDocument[] = …;
constexpr char kEmbed[] = …;
constexpr char kFont[] = …;
constexpr char kFrame[] = …;
constexpr char kIframe[] = …;
constexpr char kImage[] = …;
constexpr char kJson[] = …;
constexpr char kManifest[] = …;
constexpr char kObject[] = …;
constexpr char kPaintWorklet[] = …;
constexpr char kReport[] = …;
constexpr char kScript[] = …;
constexpr char kServiceWorker[] = …;
constexpr char kSharedWorker[] = …;
constexpr char kStyle[] = …;
constexpr char kTrack[] = …;
constexpr char kVideo[] = …;
constexpr char kWebBundle[] = …;
constexpr char kWorker[] = …;
constexpr char kXslt[] = …;
constexpr char kFencedframe[] = …;
constexpr char kWebIdentity[] = …;
constexpr char kDictionary[] = …;
constexpr char kSpeculationRules[] = …;
constexpr char kSharedStorageWorklet[] = …;
constexpr auto kRequestDestinationToStringMap = …;
constexpr auto kRequestDestinationFromStringMap = …;
static_assert …;
static_assert …;
constexpr char kFiveCharEmptyString[] = …;
}
const char* RequestDestinationToString(network::mojom::RequestDestination dest,
EmptyRequestDestinationOption option) { … }
std::optional<network::mojom::RequestDestination> RequestDestinationFromString(
std::string_view dest_str,
EmptyRequestDestinationOption option) { … }
const char* RequestDestinationToStringForHistogram(
network::mojom::RequestDestination dest) { … }
bool IsRequestDestinationEmbeddedFrame(
network::mojom::RequestDestination dest) { … }
}