| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 service_manager.mojom; | 5 module service_manager.mojom; |
| 6 | 6 |
| 7 import "mojo/common/common_custom_types.mojom"; | 7 import "mojo/common/file_path.mojom"; |
| 8 import "services/service_manager/public/interfaces/interface_provider_spec.mojom
"; | 8 import "services/service_manager/public/interfaces/interface_provider_spec.mojom
"; |
| 9 | 9 |
| 10 // The result of a Resolve operation via Resolver. | 10 // The result of a Resolve operation via Resolver. |
| 11 struct ResolveResult { | 11 struct ResolveResult { |
| 12 // The mojo: name that was requested to be resolved. | 12 // The mojo: name that was requested to be resolved. |
| 13 string name; | 13 string name; |
| 14 | 14 |
| 15 // The mojo: name of the physical package supplying the requested name. This | 15 // The mojo: name of the physical package supplying the requested name. This |
| 16 // could be the same name that was passed, or the name of a package that | 16 // could be the same name that was passed, or the name of a package that |
| 17 // contains it. | 17 // contains it. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 36 mojo.common.mojom.FilePath package_path; | 36 mojo.common.mojom.FilePath package_path; |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 // Implemented exclusively for the Service Manager's use in resolving mojo: | 39 // Implemented exclusively for the Service Manager's use in resolving mojo: |
| 40 // names and reading static manifest information. | 40 // names and reading static manifest information. |
| 41 interface Resolver { | 41 interface Resolver { |
| 42 // Resolves |mojo_name| and returns a ResolveResult containing metadata from | 42 // Resolves |mojo_name| and returns a ResolveResult containing metadata from |
| 43 // the catalog that the Service Manager uses to run an instance of it. | 43 // the catalog that the Service Manager uses to run an instance of it. |
| 44 ResolveMojoName(string mojo_name) => (ResolveResult result); | 44 ResolveMojoName(string mojo_name) => (ResolveResult result); |
| 45 }; | 45 }; |
| OLD | NEW |