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

Unified 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, 10 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/public/interfaces/application_manager.mojom
diff --git a/mojo/shell/public/interfaces/application_manager.mojom b/mojo/shell/public/interfaces/application_manager.mojom
deleted file mode 100644
index 346d0c29f7ab303ce1b66936ac626a9b32bcd650..0000000000000000000000000000000000000000
--- a/mojo/shell/public/interfaces/application_manager.mojom
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-module mojo.shell.mojom;
-
-import "mojo/shell/public/interfaces/shell.mojom";
-import "mojo/shell/public/interfaces/shell_client_factory.mojom";
-
-struct InstanceInfo {
- uint32 id;
- string name;
- string qualifier;
- uint32 pid;
-};
-
-// Implemented by a client that wishes to be informed when the list of running
-// instances changes.
-interface InstanceListener {
- // Called once when the listener is added via
- // ApplicationManager::AddInstanceListener() to provide the initial list of
- // instances that the listener observes changes against.
- SetExistingInstances(array<InstanceInfo> instances);
-
- // Called when the application manager has started tracking an instance.
- // This happens when the application manager first handles a request to launch
- // the instance, before any process is created for it.
- InstanceCreated(InstanceInfo instance);
-
- // Called when the application manager has stopped tracking an instance.
- // (i.e. when it has ended/quit).
- InstanceDestroyed(uint32 id);
-
- // Called when a pid is available for the instance. This could be because a
- // process was created by the runner for it, or because an existing content
- // handler process was assigned.
- InstancePIDAvailable(uint32 id, uint32 pid);
-};
-
-// Implemented by an object in the application manager associated with a
-// specific instance. Tells it the PID for a process launched by the client.
-// This interface is only available to callers of ApplicationManager::
-// CreateInstanceForHandle().
-interface PIDReceiver {
- SetPID(uint32 pid);
-};
-
-interface ApplicationManager {
- // Instructs the ApplicationManager to create an instance for an existing
- // process at the other end of |factory|, and perform applicable
- // initialization. |user_id| is the user the instance should be created as.
- // This is typically set to Connector::kUserInherit, unless the application
- // has the ability to connect as other users.
- CreateInstanceForFactory(ShellClientFactory factory,
- string name,
- uint32 user_id,
- CapabilityFilter filter,
- PIDReceiver& pid_receiver);
-
- // The listener is removed when the |listener| pipe is closed.
- AddInstanceListener(InstanceListener listener);
-};
« 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