#include "third_party/blink/public/common/permissions/permission_utils.h"
#include "base/no_destructor.h"
#include "base/notreached.h"
#include "third_party/blink/public/mojom/permissions/permission.mojom.h"
#include "third_party/blink/public/mojom/permissions_policy/permissions_policy_feature.mojom.h"
namespace blink {
PermissionDescriptorPtr;
PermissionName;
PermissionStatus;
mojom::PermissionStatus ToPermissionStatus(const std::string& status) { … }
std::string GetPermissionString(PermissionType permission) { … }
std::optional<mojom::PermissionsPolicyFeature>
PermissionTypeToPermissionsPolicyFeature(PermissionType permission) { … }
const std::vector<PermissionType>& GetAllPermissionTypes() { … }
std::optional<PermissionType> PermissionDescriptorToPermissionType(
const PermissionDescriptorPtr& descriptor) { … }
std::optional<PermissionType> PermissionDescriptorInfoToPermissionType(
mojom::PermissionName name,
bool midi_sysex,
bool camera_ptz,
bool clipboard_will_be_sanitized,
bool clipboard_has_user_gesture,
bool fullscreen_allow_without_user_gesture) { … }
}