| 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/capabilities.mojom"; |
| 7 import "mojo/shell/public/interfaces/connector.mojom"; | 8 import "mojo/shell/public/interfaces/connector.mojom"; |
| 8 import "mojo/shell/public/interfaces/interface_provider.mojom"; | 9 import "mojo/shell/public/interfaces/interface_provider.mojom"; |
| 9 | 10 |
| 10 // Implemented by something "known to" the Mojo Shell (e.g. an application or | 11 // Implemented by something "known to" the Mojo Shell (e.g. an application or |
| 11 // service), for which an instance is tracked. It allows the implementor to | 12 // service), for which an instance is tracked. It allows the implementor to |
| 12 // receive lifecycle events and service inbound connection attempts. | 13 // receive lifecycle events and service inbound connection attempts. |
| 13 interface ShellClient { | 14 interface ShellClient { |
| 14 // Called by the shell once an instance for this application has been created. | 15 // Called by the shell once an instance for this application has been created. |
| 15 // This method will be called exactly once before any other method is called. | 16 // This method will be called exactly once before any other method is called. |
| 16 // | 17 // |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // manifests. Attempts to bind interfaces not in this whitelist must not be | 63 // manifests. Attempts to bind interfaces not in this whitelist must not be |
| 63 // fulfilled. | 64 // fulfilled. |
| 64 // | 65 // |
| 65 // resolved_name | 66 // resolved_name |
| 66 // The resolved name used to complete this connection. | 67 // The resolved name used to complete this connection. |
| 67 // | 68 // |
| 68 AcceptConnection(Identity source, | 69 AcceptConnection(Identity source, |
| 69 uint32 source_id, | 70 uint32 source_id, |
| 70 InterfaceProvider&? local_interfaces, | 71 InterfaceProvider&? local_interfaces, |
| 71 InterfaceProvider? remote_interfaces, | 72 InterfaceProvider? remote_interfaces, |
| 72 array<string> allowed_interfaces, | 73 CapabilityRequest allowed_capabilities, |
| 73 string resolved_name); | 74 string resolved_name); |
| 74 }; | 75 }; |
| OLD | NEW |