#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_PERMISSIONS_PERMISSION_UTILS_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_PERMISSIONS_PERMISSION_UTILS_H_
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "third_party/blink/public/mojom/permissions/permission.mojom-blink.h"
#include "third_party/blink/renderer/modules/modules_export.h"
#include "third_party/blink/renderer/platform/wtf/forward.h"
namespace blink {
class ExecutionContext;
class ExceptionState;
class ScriptState;
class ScriptValue;
class V8PermissionState;
void ConnectToPermissionService(
ExecutionContext*,
mojo::PendingReceiver<mojom::blink::PermissionService>);
V8PermissionState ToV8PermissionState(mojom::blink::PermissionStatus);
String PermissionStatusToString(mojom::blink::PermissionStatus);
String PermissionNameToString(mojom::blink::PermissionName);
mojom::blink::PermissionDescriptorPtr CreatePermissionDescriptor(
mojom::blink::PermissionName);
mojom::blink::PermissionDescriptorPtr CreateMidiPermissionDescriptor(
bool sysex);
mojom::blink::PermissionDescriptorPtr CreateClipboardPermissionDescriptor(
mojom::blink::PermissionName,
bool has_user_gesture,
bool will_be_sanitized);
mojom::blink::PermissionDescriptorPtr CreateVideoCapturePermissionDescriptor(
bool pan_tilt_zoom);
mojom::blink::PermissionDescriptorPtr CreateFullscreenPermissionDescriptor(
bool allow_without_user_gesture);
MODULES_EXPORT mojom::blink::PermissionDescriptorPtr ParsePermissionDescriptor(
ScriptState*,
const ScriptValue& raw_permission,
ExceptionState&);
}
#endif