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

Unified Diff: device/devices_app/usb/public/interfaces/permission_provider.mojom

Issue 1316203006: Convert DeviceManagerDelegate to PermissionProvider mojo interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
Index: device/devices_app/usb/public/interfaces/permission_provider.mojom
diff --git a/device/devices_app/usb/public/interfaces/permission_provider.mojom b/device/devices_app/usb/public/interfaces/permission_provider.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..cb32d3a93913776f3719af79f929139aba71f56c
--- /dev/null
+++ b/device/devices_app/usb/public/interfaces/permission_provider.mojom
@@ -0,0 +1,13 @@
+// Copyright 2015 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 device.usb;
+
+import "device.mojom";
+
+interface PermissionProvider {
+ // filters a set of |requested_guids| down to the set of |allowed_guids| that
Ken Rockot(use gerrit already) 2015/09/02 22:42:33 nit: Filters
Reilly Grant (use Gerrit) 2015/09/02 23:58:19 Done.
+ // should be accessible to clients of the DeviceManager instance.
+ HasDevicePermission(array<string> requested_guids) => (array<string> allowed_guids);
Ken Rockot(use gerrit already) 2015/09/02 22:42:33 nit: > 80 chars Preferred wrapping for mojom would
Reilly Grant (use Gerrit) 2015/09/02 23:58:19 Done.
+};

Powered by Google App Engine
This is Rietveld 408576698