5#ifndef MOLYBDEN_PERMISSIONS_HPP
6#define MOLYBDEN_PERMISSIONS_HPP
10#include "molybden/permission/permissions_delegates.hpp"
19enum class PermissionType {
29 kProtectedMediaIdentifier,
46 kClipboardSanitizedWrite,
57enum class PermissionStatus { kGranted, kDenied, kAsk };
67 virtual std::shared_ptr<Profile>
profile() = 0;
73 const std::string& url) = 0;
79 const std::string& url) = 0;
A class that contains all permission delegates.
Definition permissions_delegates.hpp:71
Allows managing permissions.
Definition permissions.hpp:62
virtual std::shared_ptr< Profile > profile()=0
The profile of this service.
virtual void resetPermission(PermissionType permission_type, const std::string &url)=0
Sets the permission back to its default for the given URL.
virtual PermissionStatus getPermissionStatus(PermissionType permission_type, const std::string &url)=0
Returns the permission status for the given URL.