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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // Provides the shell the ability to bind a Service from the client process to | 75 // Provides the shell the ability to bind a Service from the client process to |
76 // the instance it creates. | 76 // the instance it creates. |
77 handle<message_pipe> service; | 77 handle<message_pipe> service; |
78 | 78 |
79 // Allows the client process launcher to tell the shell the PID of the process | 79 // Allows the client process launcher to tell the shell the PID of the process |
80 // it created (the pid isn't supplied directly here as the process may not | 80 // it created (the pid isn't supplied directly here as the process may not |
81 // have been launched by the time Connect() is called.) | 81 // have been launched by the time Connect() is called.) |
82 handle<message_pipe> pid_receiver_request; | 82 handle<message_pipe> pid_receiver_request; |
83 }; | 83 }; |
84 | 84 |
85 // Encapsulates establishing connections with other Mojo applications. | 85 // Encapsulates establishing connections with other Services. |
86 interface Connector { | 86 interface Connector { |
87 // Requests a connection with another application. The application originating | 87 // Requests a connection with another application. The application originating |
88 // the request is referred to as the "source" and the one receiving the | 88 // the request is referred to as the "source" and the one receiving the |
89 // "target". | 89 // "target". |
90 // | 90 // |
91 // The connection is embodied by a pair of message pipes binding the | 91 // The connection is embodied by a pair of message pipes binding the |
92 // InterfaceProvider interface, which allows both the source and target | 92 // InterfaceProvider interface, which allows both the source and target |
93 // applications to export interfaces to one another. The interfaces bound via | 93 // applications to export interfaces to one another. The interfaces bound via |
94 // these InterfaceProviders are brokered by the shell according to the | 94 // these InterfaceProviders are brokered by the shell according to the |
95 // security policy defined by each application in its manifest . | 95 // security policy defined by each application in its manifest . |
(...skipping 29 matching lines...) Expand all Loading... |
125 // the shell into a valid user id returned through this callback. | 125 // the shell into a valid user id returned through this callback. |
126 // | 126 // |
127 Connect(Identity target, | 127 Connect(Identity target, |
128 InterfaceProvider&? remote_interfaces, | 128 InterfaceProvider&? remote_interfaces, |
129 ClientProcessConnection? client_process_connection) => | 129 ClientProcessConnection? client_process_connection) => |
130 (ConnectResult result, string user_id); | 130 (ConnectResult result, string user_id); |
131 | 131 |
132 // Clones this Connector so it can be passed to another thread. | 132 // Clones this Connector so it can be passed to another thread. |
133 Clone(Connector& request); | 133 Clone(Connector& request); |
134 }; | 134 }; |
OLD | NEW |