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 import "mojo/shell/public/interfaces/shell.mojom"; | 8 import "mojo/shell/public/interfaces/shell.mojom"; |
9 | 9 |
10 // TODO(beng): rewrite these comments. | 10 // TODO(beng): rewrite these comments. |
(...skipping 10 matching lines...) Expand all Loading... | |
21 // | 21 // |
22 // The |url| parameter is the identity of the application as far as the shell | 22 // The |url| parameter is the identity of the application as far as the shell |
23 // is concerned. This will be the URL the application was found at, after all | 23 // is concerned. This will be the URL the application was found at, after all |
24 // mappings, resolution, and redirects. And it will not include the | 24 // mappings, resolution, and redirects. And it will not include the |
25 // querystring, since the querystring is not part of an application's | 25 // querystring, since the querystring is not part of an application's |
26 // identity. | 26 // identity. |
27 // | 27 // |
28 // The |id| parameter is the identifier of the instance in the | 28 // The |id| parameter is the identifier of the instance in the |
29 // ApplicationManager. It can be passed to other shell interfaces that request | 29 // ApplicationManager. It can be passed to other shell interfaces that request |
30 // an instance identifier. | 30 // an instance identifier. |
31 Initialize(Shell shell, string url, uint32 id); | 31 Initialize(Shell shell, string url, uint32 id, uint32 user_id); |
sky
2016/02/23 21:15:13
Please add more comments as to what the ids mean.
| |
32 | 32 |
33 // Called when another application (identified by |requestor_url|) attempts to | 33 // Called when another application (identified by |requestor_url|) attempts to |
34 // open a connection to this application. | 34 // open a connection to this application. |
35 // | 35 // |
36 // If the other application wants to request services from this application, | 36 // If the other application wants to request services from this application, |
37 // it will have passed a valid interface request through the |services| | 37 // it will have passed a valid interface request through the |services| |
38 // parameter (i.e. one containing a valid message pipe endpoint). This | 38 // parameter (i.e. one containing a valid message pipe endpoint). This |
39 // application may then bind an implementation of |InterfaceProvider| to that | 39 // application may then bind an implementation of |InterfaceProvider| to that |
40 // request in order to make services available to the other application. | 40 // request in order to make services available to the other application. |
41 // | 41 // |
(...skipping 15 matching lines...) Expand all Loading... | |
57 // no services to the connecting application. When this parameter contains | 57 // no services to the connecting application. When this parameter contains |
58 // only the single string value "*" the application may expose all of its | 58 // only the single string value "*" the application may expose all of its |
59 // services to the connecting application. | 59 // services to the connecting application. |
60 // | 60 // |
61 // |resolved_url| is the URL that was requested to create this connection, | 61 // |resolved_url| is the URL that was requested to create this connection, |
62 // after all mappings, resolutions, and redirects. This will include any | 62 // after all mappings, resolutions, and redirects. This will include any |
63 // querystring that was part of the request. | 63 // querystring that was part of the request. |
64 // | 64 // |
65 AcceptConnection(string requestor_url, | 65 AcceptConnection(string requestor_url, |
66 uint32 requestor_id, | 66 uint32 requestor_id, |
67 uint32 requestor_user_id, | |
67 InterfaceProvider&? local_interfaces, | 68 InterfaceProvider&? local_interfaces, |
68 InterfaceProvider? remote_interfaces, | 69 InterfaceProvider? remote_interfaces, |
69 array<string> allowed_interfaces, | 70 array<string> allowed_interfaces, |
70 string resolved_url); | 71 string resolved_url); |
71 | 72 |
72 // Called by the shell in response to calling Shell's QuitApplication. The | 73 // Called by the shell in response to calling Shell's QuitApplication. The |
73 // application should run the callback with true if shutdown can proceed. | 74 // application should run the callback with true if shutdown can proceed. |
74 // See Shell::QuitApplication for details about shutdown workflow. | 75 // See Shell::QuitApplication for details about shutdown workflow. |
75 OnQuitRequested() => (bool can_quit); | 76 OnQuitRequested() => (bool can_quit); |
76 }; | 77 }; |
OLD | NEW |