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

Unified Diff: mojo/shell/capability_filter.h

Issue 1307273004: Group ConnectToApplication-related info into a params struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync & rebase Created 5 years, 3 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
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

Powered by Google App Engine
This is Rietveld 408576698