| 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 [DartUriBase="mojo/public/interfaces/application"] |
| 5 module mojo; | 6 module mojo; |
| 6 | 7 |
| 7 import "mojo/public/interfaces/application/service_provider.mojom"; | 8 import "mojo/public/interfaces/application/service_provider.mojom"; |
| 8 | 9 |
| 9 // An interface through which a Mojo application may communicate with the Mojo | 10 // An interface through which a Mojo application may communicate with the Mojo |
| 10 // system and request connections to other applications. | 11 // system and request connections to other applications. |
| 11 interface Shell { | 12 interface Shell { |
| 12 // Establishes a connection with another application (located at | 13 // Establishes a connection with another application (located at |
| 13 // |application_url|) through which the calling application and the other | 14 // |application_url|) through which the calling application and the other |
| 14 // application may request services from one another. | 15 // application may request services from one another. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 29 // the call. | 30 // the call. |
| 30 // | 31 // |
| 31 // If the |application_url| does not contain a domain, but is of the form | 32 // If the |application_url| does not contain a domain, but is of the form |
| 32 // "mojo:{service}", it is up to the Mojo shell to select an appropriate | 33 // "mojo:{service}", it is up to the Mojo shell to select an appropriate |
| 33 // application for the service. Currently, the shell does this based on the | 34 // application for the service. Currently, the shell does this based on the |
| 34 // value of its --origin flag. | 35 // value of its --origin flag. |
| 35 ConnectToApplication(string application_url, | 36 ConnectToApplication(string application_url, |
| 36 ServiceProvider&? services, | 37 ServiceProvider&? services, |
| 37 ServiceProvider? exposed_services); | 38 ServiceProvider? exposed_services); |
| 38 }; | 39 }; |
| OLD | NEW |