Index: mojo/shell/public/interfaces/capabilities.mojom |
diff --git a/mojo/shell/public/interfaces/capabilities.mojom b/mojo/shell/public/interfaces/capabilities.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..99c5bc74a32879f81da9a7f1100ac97c40c77d7e |
--- /dev/null |
+++ b/mojo/shell/public/interfaces/capabilities.mojom |
@@ -0,0 +1,21 @@ |
+// Copyright 2016 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 mojo.shell.mojom; |
+ |
+struct CapabilitySpec { |
+ // An array of class names required. |
+ array<string> classes; |
+ // An array of interface names required. |
+ array<string> interfaces; |
+}; |
+ |
+struct Capabilities { |
+ // A map of class name -> array of interfaces. The array can be empty, |
+ // non-empty, or ["*"]. |
+ map<string, array<string>> provided; |
+ |
+ // A map of application name -> spec. |
+ map<string, CapabilitySpec> required; |
+}; |