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 "network/public/interfaces/url_loader.mojom"; | 8 import "network/public/interfaces/url_loader.mojom"; |
9 | 9 |
10 // Specifies a whitelist of applications and services an application can connect | 10 // Specifies a whitelist of applications and services an application can connect |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // the call. | 49 // the call. |
50 // | 50 // |
51 // If the |application_url| does not contain a domain, but is of the form | 51 // If the |application_url| does not contain a domain, but is of the form |
52 // "mojo:{service}", it is up to the Mojo shell to select an appropriate | 52 // "mojo:{service}", it is up to the Mojo shell to select an appropriate |
53 // application for the service. Currently, the shell does this based on the | 53 // application for the service. Currently, the shell does this based on the |
54 // value of its --origin flag. | 54 // value of its --origin flag. |
55 // | 55 // |
56 // |filter| is a whitelist of application URLs and services that the target | 56 // |filter| is a whitelist of application URLs and services that the target |
57 // application is permitted to connect to. See documentation for | 57 // application is permitted to connect to. See documentation for |
58 // CapabilityFilter above. | 58 // CapabilityFilter above. |
59 // | |
60 // If the connection to |application_url| involves a content handler, then | |
61 // |content_handler_id| is the id of the deepest content handler used to | |
62 // establish the connection to |application_url|. If no content handler is | |
63 // used |content_handler_id| is kInvalidApplicationID. | |
64 ConnectToApplication(mojo.URLRequest application_url, | 59 ConnectToApplication(mojo.URLRequest application_url, |
65 InterfaceProvider&? remote_interfaces, | 60 InterfaceProvider&? remote_interfaces, |
66 InterfaceProvider? local_interfaces, | 61 InterfaceProvider? local_interfaces, |
67 CapabilityFilter filter) => | 62 CapabilityFilter filter) => (uint32 application_id); |
68 (uint32 application_id, uint32 content_handler_id); | |
69 | 63 |
70 // When there are no more instantiated services in an application, it should | 64 // When there are no more instantiated services in an application, it should |
71 // start its shutdown process by calling this method. Additionally, it should | 65 // start its shutdown process by calling this method. Additionally, it should |
72 // keep track of any new service requests that come in. The shell will then | 66 // keep track of any new service requests that come in. The shell will then |
73 // call Application::OnQuitRequested and start queueing new service requests. | 67 // call Application::OnQuitRequested and start queueing new service requests. |
74 // If the application didn't get any new service requests in the meantime, it | 68 // If the application didn't get any new service requests in the meantime, it |
75 // should call the callback with a true value. Otherwise it should call it | 69 // should call the callback with a true value. Otherwise it should call it |
76 // with false. | 70 // with false. |
77 QuitApplication(); | 71 QuitApplication(); |
78 }; | 72 }; |
OLD | NEW |