OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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.mojom; | 5 module mojo.shell.mojom; |
6 | 6 |
7 import "mojo/shell/public/interfaces/connector.mojom"; | 7 import "mojo/shell/public/interfaces/connector.mojom"; |
8 import "mojo/shell/public/interfaces/shell_client_factory.mojom"; | |
9 | 8 |
10 struct InstanceInfo { | 9 struct InstanceInfo { |
11 uint32 id; | 10 uint32 id; |
12 Identity identity; | 11 Identity identity; |
13 uint32 pid; | 12 uint32 pid; |
14 }; | 13 }; |
15 | 14 |
16 // Implemented by a client that wishes to be informed when the list of running | 15 // Implemented by a client that wishes to be informed when the list of running |
17 // instances changes. | 16 // instances changes. |
18 interface InstanceListener { | 17 interface InstanceListener { |
(...skipping 14 matching lines...) Expand all Loading... |
33 // Called when a pid is available for the instance. This could be because a | 32 // Called when a pid is available for the instance. This could be because a |
34 // process was created by the runner for it, or because an existing content | 33 // process was created by the runner for it, or because an existing content |
35 // handler process was assigned. | 34 // handler process was assigned. |
36 InstancePIDAvailable(uint32 id, uint32 pid); | 35 InstancePIDAvailable(uint32 id, uint32 pid); |
37 }; | 36 }; |
38 | 37 |
39 interface Shell { | 38 interface Shell { |
40 // The listener is removed when the |listener| pipe is closed. | 39 // The listener is removed when the |listener| pipe is closed. |
41 AddInstanceListener(InstanceListener listener); | 40 AddInstanceListener(InstanceListener listener); |
42 }; | 41 }; |
OLD | NEW |