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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // ClientProcessConnection. | 62 // ClientProcessConnection. |
63 interface PIDReceiver { | 63 interface PIDReceiver { |
64 SetPID(uint32 pid); | 64 SetPID(uint32 pid); |
65 }; | 65 }; |
66 | 66 |
67 // Typically, the shell will start a process for a service the first time it | 67 // Typically, the shell will start a process for a service the first time it |
68 // receives a connection request for it. This struct allows a client to start | 68 // receives a connection request for it. This struct allows a client to start |
69 // the process itself and provide the shell the pipes it needs to communicate | 69 // the process itself and provide the shell the pipes it needs to communicate |
70 // with it. When an instance of this struct is supplied to Connect(), the client | 70 // with it. When an instance of this struct is supplied to Connect(), the client |
71 // owns the lifetime of the child process, not the shell. The shell binds the | 71 // owns the lifetime of the child process, not the shell. The shell binds the |
72 // |shell_client| pipe, and when it closes destroys the associated instance but | 72 // |service| pipe, and when it closes destroys the associated instance but |
73 // the process stays alive. | 73 // the process stays alive. |
74 struct ClientProcessConnection { | 74 struct ClientProcessConnection { |
75 // Provides the shell the ability to bind a ShellClient from the client | 75 // Provides the shell the ability to bind a Service from the client process to |
76 // process to the instance it creates. | 76 // the instance it creates. |
77 handle<message_pipe> shell_client; | 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 Mojo applications. |
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 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 // | 135 // |
136 Connect(Identity target, | 136 Connect(Identity target, |
137 InterfaceProvider&? remote_interfaces, | 137 InterfaceProvider&? remote_interfaces, |
138 InterfaceProvider? local_interfaces, | 138 InterfaceProvider? local_interfaces, |
139 ClientProcessConnection? client_process_connection) => | 139 ClientProcessConnection? client_process_connection) => |
140 (ConnectResult result, string user_id, uint32 application_id); | 140 (ConnectResult result, string user_id, uint32 application_id); |
141 | 141 |
142 // Clones this Connector so it can be passed to another thread. | 142 // Clones this Connector so it can be passed to another thread. |
143 Clone(Connector& request); | 143 Clone(Connector& request); |
144 }; | 144 }; |
OLD | NEW |