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

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

Issue 1775813002: Eliminate CapabilityFilter parameter from CreateInstance, instead reading it from the associated ma… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@41qual
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
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/connector.mojom"; 7 import "mojo/shell/public/interfaces/connector.mojom";
8 import "mojo/shell/public/interfaces/shell_client_factory.mojom"; 8 import "mojo/shell/public/interfaces/shell_client_factory.mojom";
9 9
10 struct InstanceInfo { 10 struct InstanceInfo {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 interface Shell { 60 interface Shell {
61 // Instructs the Shell to create an instance for an existing process at the 61 // Instructs the Shell to create an instance for an existing process at the
62 // other end of |factory|, and perform applicable initialization. |user_id| is 62 // other end of |factory|, and perform applicable initialization. |user_id| is
63 // the user the instance should be created as. This is typically set to 63 // the user the instance should be created as. This is typically set to
64 // Connector::kUserInherit, unless the application has the ability to connect 64 // Connector::kUserInherit, unless the application has the ability to connect
65 // as other users. |result| passed in the response indicates (via a MojoResult 65 // as other users. |result| passed in the response indicates (via a MojoResult
66 // code, see connector.mojom for definitions) the status of the instance 66 // code, see connector.mojom for definitions) the status of the instance
67 // creation. 67 // creation.
68 CreateInstance(ShellClientFactory factory, 68 CreateInstance(ShellClientFactory factory,
69 Identity target, 69 Identity target,
70 CapabilityFilter filter,
71 PIDReceiver& pid_receiver) => (ConnectResult result); 70 PIDReceiver& pid_receiver) => (ConnectResult result);
72 71
73 // The listener is removed when the |listener| pipe is closed. 72 // The listener is removed when the |listener| pipe is closed.
74 AddInstanceListener(InstanceListener listener); 73 AddInstanceListener(InstanceListener listener);
75 }; 74 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698