Index: content/common/permission_service.mojom |
diff --git a/content/common/permission_service.mojom b/content/common/permission_service.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..527af42679654612bba118b59ac064d4036c7eb7 |
--- /dev/null |
+++ b/content/common/permission_service.mojom |
@@ -0,0 +1,37 @@ |
+// 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 content; |
+ |
+enum PermissionStatus { |
+ GRANTED, |
+ DENIED, |
+ ASK |
+}; |
+ |
+enum PermissionName { |
+ GEOLOCATION, |
+}; |
+ |
+// 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. |
+// [Client=PermissionServiceClient] |
qsr
2014/11/14 11:49:27
Just delete this instead of commenting it.
|
+interface PermissionService { |
+ QueryPermission(PermissionName permission, string origin) |
+ => (PermissionStatus status); |
+ RequestPermission(PermissionName permission, string origin) |
+ => (PermissionStatus status); |
+// RevokePermission(PermissionName permission, string origin) |
+// => (PermissionStatus status); |
+ |
+// StartObserving(PermissionName permission, string origin); |
+// StopObserving(PermissionName permission, string origin); |
+}; |
+ |
+// interface PermissionServiceClient { |
+// OnPermissionChange(PermissionName permission, |
+// string origin, |
+// PermissionStatus status); |
+// }; |