OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 { | 5 module mojo { |
6 | 6 |
7 [Client=ShellClient] | 7 [Client=ServiceProvider] |
8 interface Shell { | 8 interface ServiceProvider { |
9 // Loads url. mojo:{service} will result in the user of the value of the | 9 // Loads url. mojo:{service} will result in the user of the value of the |
10 // --origin flag to the shell being used. | 10 // --origin flag to the shell being used. |
11 Connect(string url, handle<message_pipe> client_handle); | 11 ConnectToService(string url, handle<message_pipe> client_handle); |
12 }; | |
13 | |
14 interface ShellClient { | |
15 AcceptConnection(string url, handle<message_pipe> client_handle); | |
16 }; | 12 }; |
17 | 13 |
18 } | 14 } |
OLD | NEW |