OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 module content; |
| 6 |
| 7 enum PermissionStatus { |
| 8 GRANTED, |
| 9 DENIED, |
| 10 ASK |
| 11 }; |
| 12 |
| 13 enum PermissionName { |
| 14 GEOLOCATION, |
| 15 }; |
| 16 |
| 17 // The Permission service provides permission handling capabilities by exposing |
| 18 // methods to check, request, and revoke permissions. It also allows a client to |
| 19 // start listening to permission changes. |
| 20 interface PermissionService { |
| 21 HasPermission(PermissionName permission, string origin) |
| 22 => (PermissionStatus status); |
| 23 RequestPermission(PermissionName permission, string origin) |
| 24 => (PermissionStatus status); |
| 25 }; |
OLD | NEW |