Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 module content; | 5 module content; |
| 6 | 6 |
| 7 import "content/public/common/permission_status.mojom"; | 7 import "content/public/common/permission_status.mojom"; |
| 8 | 8 |
| 9 enum PermissionName { | 9 enum PermissionName { |
| 10 GEOLOCATION, | 10 GEOLOCATION, |
| 11 MIDI_SYSEX, | 11 MIDI_SYSEX, |
| 12 NOTIFICATIONS, | 12 NOTIFICATIONS, |
| 13 PROTECTED_MEDIA_IDENTIFIER, | |
| 13 }; | 14 }; |
| 14 | 15 |
| 15 // The Permission service provides permission handling capabilities by exposing | 16 // The Permission service provides permission handling capabilities by exposing |
| 16 // methods to check, request, and revoke permissions. It also allows a client to | 17 // methods to check, request, and revoke permissions. It also allows a client to |
| 17 // start listening to permission changes. | 18 // start listening to permission changes. |
|
ddorwin
2015/01/26 23:33:46
How does a client listen to permissions? Is that a
xhwang
2015/01/27 00:01:57
I don't think this file is complete. For example,
| |
| 18 interface PermissionService { | 19 interface PermissionService { |
|
ddorwin
2015/01/26 23:33:46
Separate CL: It would be nice if this file had det
xhwang
2015/01/27 00:01:57
ditto
| |
| 19 HasPermission(PermissionName permission, string origin) | 20 HasPermission(PermissionName permission, string origin) |
| 20 => (PermissionStatus status); | 21 => (PermissionStatus status); |
| 21 RequestPermission(PermissionName permission, string origin, bool user_gesture) | 22 RequestPermission(PermissionName permission, string origin, bool user_gesture) |
| 22 => (PermissionStatus status); | 23 => (PermissionStatus status); |
| 23 }; | 24 }; |
| OLD | NEW |