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

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

Issue 758603002: Use Mojo Permission Service when requesting Notifications permission. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission_geolocation_follow_up
Patch Set: fixes to pass tests Created 6 years 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 enum PermissionStatus { 7 enum PermissionStatus {
8 GRANTED, 8 GRANTED,
9 DENIED, 9 DENIED,
10 ASK 10 ASK
11 }; 11 };
12 12
13 enum PermissionName { 13 enum PermissionName {
14 GEOLOCATION, 14 GEOLOCATION,
15 MIDI_SYSEX, 15 MIDI_SYSEX,
16 NOTIFICATIONS,
16 }; 17 };
17 18
18 // The Permission service provides permission handling capabilities by exposing 19 // The Permission service provides permission handling capabilities by exposing
19 // methods to check, request, and revoke permissions. It also allows a client to 20 // methods to check, request, and revoke permissions. It also allows a client to
20 // start listening to permission changes. 21 // start listening to permission changes.
21 interface PermissionService { 22 interface PermissionService {
22 HasPermission(PermissionName permission, string origin) 23 HasPermission(PermissionName permission, string origin)
23 => (PermissionStatus status); 24 => (PermissionStatus status);
24 RequestPermission(PermissionName permission, string origin) 25 RequestPermission(PermissionName permission, string origin)
25 => (PermissionStatus status); 26 => (PermissionStatus status);
26 }; 27 };
OLDNEW
« no previous file with comments | « content/child/notifications/notification_dispatcher.cc ('k') | content/common/platform_notification_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698