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

Unified Diff: mojo/shell/public/interfaces/capabilities.mojom

Issue 1776813002: CapabilitySpec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@42cpi
Patch Set: . Created 4 years, 9 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 | « mojo/shell/public/interfaces/BUILD.gn ('k') | mojo/shell/public/interfaces/shell.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+};
« no previous file with comments | « mojo/shell/public/interfaces/BUILD.gn ('k') | mojo/shell/public/interfaces/shell.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698