Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(515)

Side by Side Diff: mojo/shell/public/interfaces/application_manager.mojom

Issue 1764253002: Rename shell.mojom to connector.mojom, ApplicationManager to Shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@32exe
Patch Set: . Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/shell/public/interfaces/BUILD.gn ('k') | mojo/shell/public/interfaces/connector.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 module mojo.shell.mojom;
6
7 import "mojo/shell/public/interfaces/shell.mojom";
8 import "mojo/shell/public/interfaces/shell_client_factory.mojom";
9
10 struct InstanceInfo {
11 uint32 id;
12 string name;
13 string qualifier;
14 uint32 pid;
15 };
16
17 // Implemented by a client that wishes to be informed when the list of running
18 // instances changes.
19 interface InstanceListener {
20 // Called once when the listener is added via
21 // ApplicationManager::AddInstanceListener() to provide the initial list of
22 // instances that the listener observes changes against.
23 SetExistingInstances(array<InstanceInfo> instances);
24
25 // Called when the application manager has started tracking an instance.
26 // This happens when the application manager first handles a request to launch
27 // the instance, before any process is created for it.
28 InstanceCreated(InstanceInfo instance);
29
30 // Called when the application manager has stopped tracking an instance.
31 // (i.e. when it has ended/quit).
32 InstanceDestroyed(uint32 id);
33
34 // Called when a pid is available for the instance. This could be because a
35 // process was created by the runner for it, or because an existing content
36 // handler process was assigned.
37 InstancePIDAvailable(uint32 id, uint32 pid);
38 };
39
40 // Implemented by an object in the application manager associated with a
41 // specific instance. Tells it the PID for a process launched by the client.
42 // This interface is only available to callers of ApplicationManager::
43 // CreateInstanceForHandle().
44 interface PIDReceiver {
45 SetPID(uint32 pid);
46 };
47
48 interface ApplicationManager {
49 // Instructs the ApplicationManager to create an instance for an existing
50 // process at the other end of |factory|, and perform applicable
51 // initialization. |user_id| is the user the instance should be created as.
52 // This is typically set to Connector::kUserInherit, unless the application
53 // has the ability to connect as other users.
54 CreateInstanceForFactory(ShellClientFactory factory,
55 string name,
56 uint32 user_id,
57 CapabilityFilter filter,
58 PIDReceiver& pid_receiver);
59
60 // The listener is removed when the |listener| pipe is closed.
61 AddInstanceListener(InstanceListener listener);
62 };
OLDNEW
« no previous file with comments | « mojo/shell/public/interfaces/BUILD.gn ('k') | mojo/shell/public/interfaces/connector.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698