| Index: mojo/shell/capability_filter.h
|
| diff --git a/mojo/shell/capability_filter.h b/mojo/shell/capability_filter.h
|
| index 16a55c245d3d5bc16e89b769971ed8a919b2e7f8..2d0ef85442276e130bccc7fec9f756f1becbe364 100644
|
| --- a/mojo/shell/capability_filter.h
|
| +++ b/mojo/shell/capability_filter.h
|
| @@ -13,6 +13,8 @@
|
| namespace mojo {
|
| namespace shell {
|
|
|
| +struct Identity;
|
| +
|
| // A set of names of interfaces that may be exposed to an application.
|
| using AllowedInterfaces = std::set<std::string>;
|
| // A map of allowed applications to allowed interface sets. See shell.mojom for
|
| @@ -23,6 +25,11 @@ using CapabilityFilter = std::map<std::string, AllowedInterfaces>;
|
| // other application and any service exposed by other applications.
|
| CapabilityFilter GetPermissiveCapabilityFilter();
|
|
|
| +// Returns the set of interfaces that an application instance with |filter| is
|
| +// allowed to see from an instance with |identity|.
|
| +AllowedInterfaces GetAllowedInterfaces(const CapabilityFilter& filter,
|
| + const Identity& identity);
|
| +
|
| } // namespace shell
|
| } // namespace mojo
|
|
|
|
|