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

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

Issue 1743473002: Change Mojo URLs to structured names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@18collapse
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/cpp/shell_connection.h ('k') | mojo/shell/public/interfaces/shell.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 };
OLDNEW
« no previous file with comments | « mojo/shell/public/cpp/shell_connection.h ('k') | mojo/shell/public/interfaces/shell.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698