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

Unified Diff: components/permissions/permission.mojom

Issue 1943963004: Revert of (reland) Move permission.mojom from WebKit/public/platform/ to components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/permissions/OWNERS ('k') | components/permissions/permission_status.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/permissions/permission.mojom
diff --git a/components/permissions/permission.mojom b/components/permissions/permission.mojom
deleted file mode 100644
index b742226c7198161ca7087bb8f22dd6e766a8bfd4..0000000000000000000000000000000000000000
--- a/components/permissions/permission.mojom
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-module permissions.mojom;
-
-import "components/permissions/permission_status.mojom";
-
-enum PermissionName {
- GEOLOCATION,
- NOTIFICATIONS,
- PUSH_NOTIFICATIONS,
- MIDI,
- MIDI_SYSEX,
- PROTECTED_MEDIA_IDENTIFIER,
- DURABLE_STORAGE,
- AUDIO_CAPTURE,
- VIDEO_CAPTURE,
- BACKGROUND_SYNC,
-};
-
-// The Permission service provides permission handling capabilities by exposing
-// methods to check, request, and revoke permissions. It also allows a client to
-// start listening to permission changes.
-interface PermissionService {
- HasPermission(PermissionName permission, string origin)
- => (PermissionStatus status);
- RequestPermission(PermissionName permission, string origin)
- => (PermissionStatus status);
- RequestPermissions(array<PermissionName> permission, string origin)
- => (array<PermissionStatus> statuses);
- RevokePermission(PermissionName permission, string origin)
- => (PermissionStatus status);
-
- // Runs the callback next time there is a permission status change for the
- // given { permission, origin }. Callers of this method will have to call it
- // again if they want to keep listening to the changes. To prevent race
- // conditions, the caller must pass the last known value.
- GetNextPermissionChange(PermissionName permission,
- string origin,
- PermissionStatus last_known_status)
- => (PermissionStatus status);
-};
« no previous file with comments | « components/permissions/OWNERS ('k') | components/permissions/permission_status.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698