| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 [DartPackage="mojo"] | |
| 6 module mojo; | |
| 7 | |
| 8 import "mojo/public/interfaces/application/service_provider.mojom"; | |
| 9 | |
| 10 interface ApplicationConnector { | |
| 11 // Establishes a connection with another application (located at | |
| 12 // |application_url|) through which the calling application and the other | |
| 13 // application may request services from one another. | |
| 14 // | |
| 15 // If the |application_url| does not contain a domain, but is of the form | |
| 16 // "mojo:{service}", it is up to the Mojo shell to select an appropriate | |
| 17 // application for the service. Currently, the shell does this based on the | |
| 18 // value of its --origin flag. | |
| 19 ConnectToApplication(string application_url, ServiceProvider& services); | |
| 20 | |
| 21 // Creates a duplicate of this |ApplicationConnector|. | |
| 22 Duplicate(ApplicationConnector& application_connector_request); | |
| 23 }; | |
| OLD | NEW |