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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 }; | 59 }; |
60 | 60 |
61 interface Shell { | 61 interface Shell { |
62 // Instructs the Shell to create an instance for an existing process at the | 62 // Instructs the Shell to create an instance for an existing process at the |
63 // other end of |factory|, and perform applicable initialization. |user_id| is | 63 // other end of |factory|, and perform applicable initialization. |user_id| is |
64 // the user the instance should be created as. This is typically set to | 64 // the user the instance should be created as. This is typically set to |
65 // Connector::kUserInherit, unless the application has the ability to connect | 65 // Connector::kUserInherit, unless the application has the ability to connect |
66 // as other users. | 66 // as other users. |
67 CreateInstanceForFactory(ShellClientFactory factory, | 67 CreateInstanceForFactory(ShellClientFactory factory, |
68 string name, | 68 string name, |
69 uint32 user_id, | 69 string user_id, |
70 CapabilityFilter filter, | 70 CapabilityFilter filter, |
71 PIDReceiver& pid_receiver); | 71 PIDReceiver& pid_receiver); |
72 | 72 |
73 // The listener is removed when the |listener| pipe is closed. | 73 // The listener is removed when the |listener| pipe is closed. |
74 AddInstanceListener(InstanceListener listener); | 74 AddInstanceListener(InstanceListener listener); |
75 }; | 75 }; |
OLD | NEW |