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 23 matching lines...) Expand all Loading... |
34 // InterfaceProvider interface, which allows both the source and target | 34 // InterfaceProvider interface, which allows both the source and target |
35 // applications to export interfaces to one another. The interfaces bound via | 35 // applications to export interfaces to one another. The interfaces bound via |
36 // these InterfaceProviders are brokered by the shell according to the | 36 // these InterfaceProviders are brokered by the shell according to the |
37 // security policy defined by each application in its manifest . | 37 // security policy defined by each application in its manifest . |
38 // | 38 // |
39 // If the target application is not running, the shell will run it, calling | 39 // If the target application is not running, the shell will run it, calling |
40 // its Initialize() method before completing the connection. | 40 // its Initialize() method before completing the connection. |
41 // | 41 // |
42 // Parameters: | 42 // Parameters: |
43 // | 43 // |
44 // url | 44 // name |
45 // A mojo: or exe: URL identifying the target application. | 45 // A mojo: or exe: name identifying the target application. |
46 // | 46 // |
47 // user_id | 47 // user_id |
48 // The user id of the target application instance to connect to. If no such | 48 // The user id of the target application instance to connect to. If no such |
49 // instance exists, the shell may start one. This user id will be passed | 49 // instance exists, the shell may start one. This user id will be passed |
50 // to the new instance via Initialize(). Applications must generally set | 50 // to the new instance via Initialize(). Applications must generally set |
51 // this to kUserInherit, and the shell will either connect to an existing | 51 // this to kUserInherit, and the shell will either connect to an existing |
52 // instance matching the caller's user id, create a new instance matching | 52 // instance matching the caller's user id, create a new instance matching |
53 // the caller's user id, or connect to an existing instance running as | 53 // the caller's user id, or connect to an existing instance running as |
54 // kUserRoot. By default, applications do not have the ability to pass | 54 // kUserRoot. By default, applications do not have the ability to pass |
55 // arbitrary values to this method, and doing so will result in a | 55 // arbitrary values to this method, and doing so will result in a |
(...skipping 10 matching lines...) Expand all Loading... |
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 // Response: (application_id) | 72 // Response: (application_id) |
73 // 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 |
74 // connected to. | 74 // connected to. |
75 // | 75 // |
76 Connect(string url, | 76 Connect(string name, |
77 uint32 user_id, | 77 uint32 user_id, |
78 InterfaceProvider&? remote_interfaces, | 78 InterfaceProvider&? remote_interfaces, |
79 InterfaceProvider? local_interfaces) => (uint32 application_id); | 79 InterfaceProvider? local_interfaces) => (uint32 application_id); |
80 | 80 |
81 // Clones this Connector so it can be passed to another thread. | 81 // Clones this Connector so it can be passed to another thread. |
82 Clone(Connector& request); | 82 Clone(Connector& request); |
83 }; | 83 }; |
OLD | NEW |