OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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.test.mojom; | 5 module mojo.shell.test.mojom; |
6 | 6 |
7 interface ConnectTestService { | 7 interface ConnectTestService { |
8 GetTitle() => (string title); | 8 GetTitle() => (string title); |
| 9 GetInstance() => (string instance); |
9 }; | 10 }; |
10 | 11 |
11 // Interface implemented by a standalone (non-package) app. | 12 // Interface implemented by a standalone (non-package) app. |
12 interface StandaloneApp { | 13 interface StandaloneApp { |
13 // Attempts to connect to an application whose name is explicitly allowed by | 14 // Attempts to connect to an application whose name is explicitly allowed by |
14 // the standalone app's CapabilityFilter, but whose enclosing package is not. | 15 // the standalone app's CapabilityFilter, but whose enclosing package is not. |
15 // The connection should be blocked and title should be "uninitialized". | 16 // The connection should be blocked and title should be "uninitialized". |
16 ConnectToAllowedAppInBlockedPackage() => (string title); | 17 ConnectToAllowedAppInBlockedPackage() => (string title); |
17 | |
18 GetInstance() => (string instance); | |
19 }; | 18 }; |
20 | 19 |
21 struct ConnectionState { | 20 struct ConnectionState { |
22 string connection_local_name; | 21 string connection_local_name; |
23 string connection_remote_name; | 22 string connection_remote_name; |
24 string connection_remote_userid; | 23 string connection_remote_userid; |
25 uint32 connection_remote_id; | 24 uint32 connection_remote_id; |
26 string initialize_local_name; | 25 string initialize_local_name; |
27 string initialize_userid; | 26 string initialize_userid; |
28 uint32 initialize_id; | 27 uint32 initialize_id; |
29 }; | 28 }; |
30 | 29 |
31 interface ExposedInterface { | 30 interface ExposedInterface { |
32 ConnectionAccepted(ConnectionState state); | 31 ConnectionAccepted(ConnectionState state); |
33 }; | 32 }; |
34 | 33 |
35 interface BlockedInterface { | 34 interface BlockedInterface { |
36 GetTitleBlocked() => (string blocked_title); | 35 GetTitleBlocked() => (string blocked_title); |
37 }; | 36 }; |
OLD | NEW |