1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
7 import "content/public/common/permission_status.mojom";
13 PROTECTED_MEDIA_IDENTIFIER,
16 // The Permission service provides permission handling capabilities by exposing
17 // methods to check, request, and revoke permissions. It also allows a client to
18 // start listening to permission changes.
19 interface PermissionService {
20 HasPermission(PermissionName permission, string origin)
21 => (PermissionStatus status);
22 RequestPermission(PermissionName permission, string origin, bool user_gesture)
23 => (PermissionStatus status);
24 RevokePermission(PermissionName permission, string origin)
25 => (PermissionStatus status);