| 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);
|
| };
|
|
|