#ifndef CONTENT_PUBLIC_TEST_PERMISSIONS_TEST_UTILS_H_
#define CONTENT_PUBLIC_TEST_PERMISSIONS_TEST_UTILS_H_
#include <optional>
#include "content/public/browser/permission_controller.h"
#include "third_party/blink/public/mojom/permissions/permission_status.mojom.h"
namespace blink {
enum class PermissionType;
}
namespace url {
class Origin;
}
namespace content {
void SetPermissionControllerOverrideForDevTools(
PermissionController* permission_controller,
const std::optional<url::Origin>& origin,
blink::PermissionType permission,
const blink::mojom::PermissionStatus& status);
void AddNotifyListenerObserver(PermissionController* permission_controller,
base::RepeatingClosure callback);
PermissionController::SubscriptionId SubscribeToPermissionStatusChange(
PermissionController* permission_controller,
blink::PermissionType permission,
RenderProcessHost* render_process_host,
RenderFrameHost* render_frame_host,
const GURL& requesting_origin,
bool should_include_device_status,
const base::RepeatingCallback<void(PermissionStatus)>& callback);
}
#endif