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

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

Issue 1776513003: Allow client process information to be passed via Connector::Connect(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/shell.mojom ('k') | mojo/shell/shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/public/interfaces/shell_resolver.mojom
diff --git a/mojo/services/package_manager/public/interfaces/shell_resolver.mojom b/mojo/shell/public/interfaces/shell_resolver.mojom
similarity index 62%
rename from mojo/services/package_manager/public/interfaces/shell_resolver.mojom
rename to mojo/shell/public/interfaces/shell_resolver.mojom
index 5ca348ab9a2f9a236eee16082f99ba3e82b96474..b5e6d2947d0c92659a735bd522e573c2466f51ce 100644
--- a/mojo/services/package_manager/public/interfaces/shell_resolver.mojom
+++ b/mojo/shell/public/interfaces/shell_resolver.mojom
@@ -2,9 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-module package_manager.mojom;
+module mojo.shell.mojom;
-import "mojo/shell/public/interfaces/shell.mojom";
+// Specifies a whitelist of applications and services an application can connect
+// to. Connections to applications not explicitly specified here as a key are
+// rejected. Connections to services not specified in an application's allowed
+// interfaces value are not made.
+// A "*" value as the only key in an otherwise empty map means the application
+// may connect to any other application.
+// A "*" value as the only string in an otherwise empty array of interface names
+// means the application may connect to any service in that application.
+// An empty interface name array means the application may not connect to any
+// services exposed by the application it is connecting to.
+struct CapabilityFilter {
+ map<string, array<string>> filter;
+};
// Implemented exclusively for the Mojo Shell's use in resolving mojo: names
// and reading static manifest information.
@@ -34,6 +46,6 @@ interface ShellResolver {
ResolveMojoName(string mojo_name) =>
(string resolved_mojo_name,
string qualifier,
- mojo.shell.mojom.CapabilityFilter? filter,
+ CapabilityFilter? filter,
string? mojo_file_url);
};
« no previous file with comments | « mojo/shell/public/interfaces/shell.mojom ('k') | mojo/shell/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698