Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(600)

Side by Side Diff: content/common/permission_service.mojom

Issue 819463002: Implement RevokePermission() method in PermissionService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, fix more comments, fix tests Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 }; 13 };
14 14
15 // The Permission service provides permission handling capabilities by exposing 15 // The Permission service provides permission handling capabilities by exposing
16 // methods to check, request, and revoke permissions. It also allows a client to 16 // methods to check, request, and revoke permissions. It also allows a client to
17 // start listening to permission changes. 17 // start listening to permission changes.
18 interface PermissionService { 18 interface PermissionService {
19 HasPermission(PermissionName permission, string origin) 19 HasPermission(PermissionName permission, string origin)
20 => (PermissionStatus status); 20 => (PermissionStatus status);
21 RequestPermission(PermissionName permission, string origin, bool user_gesture) 21 RequestPermission(PermissionName permission, string origin, bool user_gesture)
22 => (PermissionStatus status); 22 => (PermissionStatus status);
23 RevokePermission(PermissionName permission, string origin)
24 => (PermissionStatus status);
23 }; 25 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698