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

Unified Diff: mojo/shell/public/interfaces/shell.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/connector.mojom ('k') | mojo/shell/public/interfaces/shell_resolver.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/public/interfaces/shell.mojom
diff --git a/mojo/shell/public/interfaces/shell.mojom b/mojo/shell/public/interfaces/shell.mojom
index f29df889a34d1cf13296db524547bd27785c0864..5e0469f3e5400b595d61404dae5fc2c58a846290 100644
--- a/mojo/shell/public/interfaces/shell.mojom
+++ b/mojo/shell/public/interfaces/shell.mojom
@@ -36,39 +36,7 @@ interface InstanceListener {
InstancePIDAvailable(uint32 id, uint32 pid);
};
-// Implemented by an object in the shell associated with a specific instance.
-// Tells it the PID for a process launched by the client. This interface is only
-// available to callers of Shell::CreateInstanceForFactory().
-interface PIDReceiver {
- SetPID(uint32 pid);
-};
-
-// 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;
-};
-
interface Shell {
- // Instructs the Shell to create an instance for an existing process at the
- // other end of |factory|, and perform applicable initialization. |user_id| is
- // the user the instance should be created as. This is typically set to
- // Connector::kUserInherit, unless the application has the ability to connect
- // as other users. |result| passed in the response indicates (via a MojoResult
- // code, see connector.mojom for definitions) the status of the instance
- // creation.
- CreateInstance(ShellClientFactory factory,
- Identity target,
- PIDReceiver& pid_receiver) => (ConnectResult result);
-
// The listener is removed when the |listener| pipe is closed.
AddInstanceListener(InstanceListener listener);
};
« no previous file with comments | « mojo/shell/public/interfaces/connector.mojom ('k') | mojo/shell/public/interfaces/shell_resolver.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698