| 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/shell.mojom"; | 7 import "mojo/shell/public/interfaces/shell.mojom"; |
| 8 | 8 |
| 9 struct ApplicationInfo { | 9 struct ApplicationInfo { |
| 10 uint32 id; | 10 uint32 id; |
| 11 string url; | 11 string name; |
| 12 string qualifier; | 12 string qualifier; |
| 13 uint32 pid; | 13 uint32 pid; |
| 14 }; | 14 }; |
| 15 | 15 |
| 16 // Implemented by an application that wishes to be informed when the list of | 16 // Implemented by an application that wishes to be informed when the list of |
| 17 // running applications changes. | 17 // running applications changes. |
| 18 interface ApplicationManagerListener { | 18 interface ApplicationManagerListener { |
| 19 // Called once when the listener is added via | 19 // Called once when the listener is added via |
| 20 // ApplicationManager::AddListener() to provide the initial list of running | 20 // ApplicationManager::AddListener() to provide the initial list of running |
| 21 // applications that the listener observes changes against. | 21 // applications that the listener observes changes against. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 45 SetPID(uint32 pid); | 45 SetPID(uint32 pid); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 interface ApplicationManager { | 48 interface ApplicationManager { |
| 49 // Instructs the ApplicationManager to create an instance for an existing | 49 // Instructs the ApplicationManager to create an instance for an existing |
| 50 // process at the other end of |channel|, and perform applicable | 50 // process at the other end of |channel|, and perform applicable |
| 51 // initialization. This assumes the target process will bind the other end of | 51 // initialization. This assumes the target process will bind the other end of |
| 52 // channel to an implementation of ChildController and bind an Application | 52 // channel to an implementation of ChildController and bind an Application |
| 53 // request there. | 53 // request there. |
| 54 CreateInstanceForHandle(handle channel, | 54 CreateInstanceForHandle(handle channel, |
| 55 string url, | 55 string name, |
| 56 CapabilityFilter filter, | 56 CapabilityFilter filter, |
| 57 PIDReceiver& pid_receiver); | 57 PIDReceiver& pid_receiver); |
| 58 | 58 |
| 59 // The listener is removed when the pipe is closed. | 59 // The listener is removed when the pipe is closed. |
| 60 AddListener(ApplicationManagerListener listener); | 60 AddListener(ApplicationManagerListener listener); |
| 61 }; | 61 }; |
| OLD | NEW |