| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 shell.mojom; | 5 module shell.mojom; |
| 6 | 6 |
| 7 import "services/shell/public/interfaces/interface_provider.mojom"; | 7 import "services/shell/public/interfaces/interface_provider.mojom"; |
| 8 | 8 |
| 9 const string kRootUserID = "505C0EE9-3013-43C0-82B0-A84F50CF8D84"; | 9 const string kRootUserID = "505C0EE9-3013-43C0-82B0-A84F50CF8D84"; |
| 10 const string kInheritUserID = "D26290E4-4485-4EAE-81A2-66D1EEB40A9D"; | 10 const string kInheritUserID = "D26290E4-4485-4EAE-81A2-66D1EEB40A9D"; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // | 101 // |
| 102 // target | 102 // target |
| 103 // Identifies the target application instance to connect to. | 103 // Identifies the target application instance to connect to. |
| 104 // | 104 // |
| 105 // remote_interfaces | 105 // remote_interfaces |
| 106 // Allows the source application access to interface implementations | 106 // Allows the source application access to interface implementations |
| 107 // exposed by the target application. The interfaces accessible via this | 107 // exposed by the target application. The interfaces accessible via this |
| 108 // InterfaceParameter are filtered by the security policy described by the | 108 // InterfaceParameter are filtered by the security policy described by the |
| 109 // source and target application manifests. | 109 // source and target application manifests. |
| 110 // | 110 // |
| 111 // local_interfaces | |
| 112 // Allows the remote application access to interface implementations | |
| 113 // exposed by the source application. The interfaces accessible via this | |
| 114 // InterfaceProvider are filtered by the security policy described by the | |
| 115 // source and target application manifests. | |
| 116 // | |
| 117 // client_process_connection | 111 // client_process_connection |
| 118 // When non-null, supplies control pipes the shell can use to bind a | 112 // When non-null, supplies control pipes the shell can use to bind a |
| 119 // process created by the client, instead of creating one itself. | 113 // process created by the client, instead of creating one itself. |
| 120 // TODO(beng): access to this parameter should be restricted by a | 114 // TODO(beng): access to this parameter should be restricted by a |
| 121 // capability. | 115 // capability. |
| 122 // | 116 // |
| 123 // Response parameters: | 117 // Response parameters: |
| 124 // | 118 // |
| 125 // result | 119 // result |
| 126 // Indicates the result of the Connect() operation. | 120 // Indicates the result of the Connect() operation. |
| 127 // | 121 // |
| 128 // user_id | 122 // user_id |
| 129 // The user id the shell ran the target application as. Typically a client | 123 // The user id the shell ran the target application as. Typically a client |
| 130 // passes kInheritUserID as the user id to Connect() which is resolved by | 124 // passes kInheritUserID as the user id to Connect() which is resolved by |
| 131 // the shell into a valid user id returned through this callback. | 125 // the shell into a valid user id returned through this callback. |
| 132 // | 126 // |
| 133 // application_id | 127 // application_id |
| 134 // A unique identifier for the instance that was connected to. | 128 // A unique identifier for the instance that was connected to. |
| 135 // | 129 // |
| 136 Connect(Identity target, | 130 Connect(Identity target, |
| 137 InterfaceProvider&? remote_interfaces, | 131 InterfaceProvider&? remote_interfaces, |
| 138 InterfaceProvider? local_interfaces, | |
| 139 ClientProcessConnection? client_process_connection) => | 132 ClientProcessConnection? client_process_connection) => |
| 140 (ConnectResult result, string user_id, uint32 application_id); | 133 (ConnectResult result, string user_id, uint32 application_id); |
| 141 | 134 |
| 142 // Clones this Connector so it can be passed to another thread. | 135 // Clones this Connector so it can be passed to another thread. |
| 143 Clone(Connector& request); | 136 Clone(Connector& request); |
| 144 }; | 137 }; |
| OLD | NEW |