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/application/public/interfaces/shell.mojom"; |
| 8 |
7 interface ApplicationManager { | 9 interface ApplicationManager { |
8 // Instructs the ApplicationManager to create an instance for an existing | 10 // Instructs the ApplicationManager to create an instance for an existing |
9 // process at the other end of |channel|, and perform applicable | 11 // process at the other end of |channel|, and perform applicable |
10 // initialization. This assumes the target process will bind the other end of | 12 // initialization. This assumes the target process will bind the other end of |
11 // channel to an implementation of ChildController and bind an Application | 13 // channel to an implementation of ChildController and bind an Application |
12 // request there. | 14 // request there. |
13 // TODO(beng): we should probably have an Identity mojom struct. | 15 CreateInstanceForHandle(handle channel, |
14 // TODO(beng): for this to be used in production, it's going to have to take | 16 string url, |
15 // a fully qualified Identity complete with CapabilityFilter, | 17 mojo.CapabilityFilter filter); |
16 // otherwise child processes registered with the shell will be | |
17 // able to request any application/service. | |
18 // http://crbug.com/555392 | |
19 CreateInstanceForHandle(handle channel, string url); | |
20 }; | 18 }; |
OLD | NEW |