| OLD | NEW |
| (Empty) |
| 1 // Copyright 2013 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 // Quick definitions: | |
| 6 // The Shell is the finder and launcher of Applications. | |
| 7 // Applications vend Services through the ServiceProvider interface. | |
| 8 // Services implement Interfaces. | |
| 9 // An Application uses it's Shell interface to connect to other Applications. | |
| 10 module mojo { | |
| 11 | |
| 12 [Client=ServiceProvider] | |
| 13 interface ServiceProvider { | |
| 14 // Loads url. mojo:{service} will result in the the value of the | |
| 15 // --origin flag to the shell being used. | |
| 16 ConnectToService(string interface_name, handle<message_pipe> client_handle); | |
| 17 }; | |
| 18 | |
| 19 // TODO(davemore): Break Application & Shell into their own files. | |
| 20 [Client=Application] | |
| 21 interface Shell { | |
| 22 // Loads url. mojo:{service} will result in the user of the value of the | |
| 23 // --origin flag to the shell being used. | |
| 24 ConnectToApplication(string application_url, ServiceProvider& provider); | |
| 25 }; | |
| 26 | |
| 27 [Client=Shell] | |
| 28 interface Application { | |
| 29 AcceptConnection(string requestor_url, ServiceProvider provider); | |
| 30 }; | |
| 31 | |
| 32 } | |
| OLD | NEW |