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

Unified Diff: mojo/application/public/interfaces/application.mojom

Issue 1244233002: Allow trusted brokers to restrict connections for spawned applications to whitelisted applications … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 5 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/application/public/interfaces/application.mojom
diff --git a/mojo/application/public/interfaces/application.mojom b/mojo/application/public/interfaces/application.mojom
index 77bf1232e95bfcff508c3b2d729d6059d66ededc..34ed7be1ad885f19880dabea360f2e151fa97696 100644
--- a/mojo/application/public/interfaces/application.mojom
+++ b/mojo/application/public/interfaces/application.mojom
@@ -46,12 +46,21 @@ interface Application {
// This application is free to ignore the |services| or |exposed_services|
// parameters if it does not wish to offer or request services.
//
- // resolved_url is the URL that was requested to create this connection, after
- // all mappings, resolutions, and redirects. This will include any querystring
- // that was part of the request.
+ // |allowed_interfaces| is a set of interface names that the shell has
+ // determined can be exposed by this application to the connecting
+ // application. When this parameter is empty, this application should expose
+ // no services to the connecting application. When this parameter contains
+ // only the single string value "*" the application may expose all of its
+ // services to the connecting application.
+ //
+ // |resolved_url| is the URL that was requested to create this connection,
+ // after all mappings, resolutions, and redirects. This will include any
+ // querystring that was part of the request.
+ //
AcceptConnection(string requestor_url,
ServiceProvider&? services,
ServiceProvider? exposed_services,
+ array<string> allowed_interfaces,
string resolved_url);
// Called by the shell in response to calling Shell's QuitApplication. The

Powered by Google App Engine
This is Rietveld 408576698