| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 module mojo.shell.mojom; | 5 module mojo.shell.mojom; |
| 6 | 6 |
| 7 import "mojo/shell/public/interfaces/connector.mojom"; | 7 import "mojo/shell/public/interfaces/connector.mojom"; |
| 8 import "mojo/shell/public/interfaces/shell_client_factory.mojom"; | 8 import "mojo/shell/public/interfaces/shell_client_factory.mojom"; |
| 9 | 9 |
| 10 struct InstanceInfo { | 10 struct InstanceInfo { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 interface Shell { | 60 interface Shell { |
| 61 // Instructs the Shell to create an instance for an existing process at the | 61 // Instructs the Shell to create an instance for an existing process at the |
| 62 // other end of |factory|, and perform applicable initialization. |user_id| is | 62 // other end of |factory|, and perform applicable initialization. |user_id| is |
| 63 // the user the instance should be created as. This is typically set to | 63 // the user the instance should be created as. This is typically set to |
| 64 // Connector::kUserInherit, unless the application has the ability to connect | 64 // Connector::kUserInherit, unless the application has the ability to connect |
| 65 // as other users. |result| passed in the response indicates (via a MojoResult | 65 // as other users. |result| passed in the response indicates (via a MojoResult |
| 66 // code, see connector.mojom for definitions) the status of the instance | 66 // code, see connector.mojom for definitions) the status of the instance |
| 67 // creation. | 67 // creation. |
| 68 CreateInstance(ShellClientFactory factory, | 68 CreateInstance(ShellClientFactory factory, |
| 69 Identity target, | 69 Identity target, |
| 70 CapabilityFilter filter, | |
| 71 PIDReceiver& pid_receiver) => (ConnectResult result); | 70 PIDReceiver& pid_receiver) => (ConnectResult result); |
| 72 | 71 |
| 73 // The listener is removed when the |listener| pipe is closed. | 72 // The listener is removed when the |listener| pipe is closed. |
| 74 AddInstanceListener(InstanceListener listener); | 73 AddInstanceListener(InstanceListener listener); |
| 75 }; | 74 }; |
| OLD | NEW |