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 mojo.shell.mojom; | 5 module mojo.shell.mojom; |
6 | 6 |
7 import "mojo/shell/public/interfaces/interface_provider.mojom"; | 7 import "mojo/shell/public/interfaces/interface_provider.mojom"; |
8 | 8 |
9 // Specifies a whitelist of applications and services an application can connect | 9 // Specifies a whitelist of applications and services an application can connect |
10 // to. Connections to applications not explicitly specified here as a key are | 10 // to. Connections to applications not explicitly specified here as a key are |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // exposed by the target application. The interfaces accessible via this | 62 // exposed by the target application. The interfaces accessible via this |
63 // InterfaceParameter are filtered by the security policy described by the | 63 // InterfaceParameter are filtered by the security policy described by the |
64 // source and target application manifests. | 64 // source and target application manifests. |
65 // | 65 // |
66 // local_interfaces | 66 // local_interfaces |
67 // Allows the remote application access to interface implementations | 67 // Allows the remote application access to interface implementations |
68 // exposed by the source application. The interfaces accessible via this | 68 // exposed by the source application. The interfaces accessible via this |
69 // InterfaceProvider are filtered by the security policy described by the | 69 // InterfaceProvider are filtered by the security policy described by the |
70 // source and target application manifests. | 70 // source and target application manifests. |
71 // | 71 // |
72 // filter | |
73 // Deprecated, to be removed. | |
74 // | |
75 // Response: (application_id) | 72 // Response: (application_id) |
76 // The shell responds with a unique identifier for the instance that was | 73 // The shell responds with a unique identifier for the instance that was |
77 // connected to. | 74 // connected to. |
78 // | 75 // |
79 Connect(string url, | 76 Connect(string url, |
80 uint32 user_id, | 77 uint32 user_id, |
81 InterfaceProvider&? remote_interfaces, | 78 InterfaceProvider&? remote_interfaces, |
82 InterfaceProvider? local_interfaces, | 79 InterfaceProvider? local_interfaces) => (uint32 application_id); |
83 CapabilityFilter filter) => (uint32 application_id); | |
84 | 80 |
85 // Clones this Connector so it can be passed to another thread. | 81 // Clones this Connector so it can be passed to another thread. |
86 Clone(Connector& request); | 82 Clone(Connector& request); |
87 }; | 83 }; |
88 | 84 |
89 // Wraps functionality exposed by the Shell to a Mojo application instance. | 85 // Wraps functionality exposed by the Shell to a Mojo application instance. |
90 interface Shell { | 86 interface Shell { |
91 // Obtain a Connector that can be used to create connections with other | 87 // Obtain a Connector that can be used to create connections with other |
92 // applications. The connector is bound in the shell to the instance that | 88 // applications. The connector is bound in the shell to the instance that |
93 // vended this Shell interface, all connectors created and cloned frmo this | 89 // vended this Shell interface, all connectors created and cloned frmo this |
94 // one are bound to the lifetime of this instance. | 90 // one are bound to the lifetime of this instance. |
95 GetConnector(Connector& connector); | 91 GetConnector(Connector& connector); |
96 | 92 |
97 // When there are no more instantiated services in an application, it should | 93 // When there are no more instantiated services in an application, it should |
98 // start its shutdown process by calling this method. Additionally, it should | 94 // start its shutdown process by calling this method. Additionally, it should |
99 // keep track of any new service requests that come in. The shell will then | 95 // keep track of any new service requests that come in. The shell will then |
100 // call Application::OnQuitRequested and start queueing new service requests. | 96 // call Application::OnQuitRequested and start queueing new service requests. |
101 // If the application didn't get any new service requests in the meantime, it | 97 // If the application didn't get any new service requests in the meantime, it |
102 // should call the callback with a true value. Otherwise it should call it | 98 // should call the callback with a true value. Otherwise it should call it |
103 // with false. | 99 // with false. |
104 QuitApplication(); | 100 QuitApplication(); |
105 }; | 101 }; |
OLD | NEW |