| 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/common_custom_types.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. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 // should be run as different instances. | 22 // should be run as different instances. |
| 23 string qualifier; | 23 string qualifier; |
| 24 | 24 |
| 25 // Contains the contents of the interface_provider_specs section in |name|'s | 25 // Contains the contents of the interface_provider_specs section in |name|'s |
| 26 // service manifest. If a manifest could be loaded, this map will contain at | 26 // service manifest. If a manifest could be loaded, this map will contain at |
| 27 // least one key: |kServiceManager_ConnectorSpec| as defined in | 27 // least one key: |kServiceManager_ConnectorSpec| as defined in |
| 28 // interface_provider_spec.mojom. If a manifest could not be loaded, this map | 28 // interface_provider_spec.mojom. If a manifest could not be loaded, this map |
| 29 // will be empty. | 29 // will be empty. |
| 30 map<string, InterfaceProviderSpec> interface_provider_specs; | 30 map<string, InterfaceProviderSpec> interface_provider_specs; |
| 31 | 31 |
| 32 // The set of capabilities of the containing package if any. |
| 33 InterfaceProviderSpec? package_spec; |
| 34 |
| 32 // A path to the package file specified by |name|. | 35 // A path to the package file specified by |name|. |
| 33 mojo.common.mojom.FilePath package_path; | 36 mojo.common.mojom.FilePath package_path; |
| 34 }; | 37 }; |
| 35 | 38 |
| 36 // Implemented exclusively for the Service Manager's use in resolving mojo: | 39 // Implemented exclusively for the Service Manager's use in resolving mojo: |
| 37 // names and reading static manifest information. | 40 // names and reading static manifest information. |
| 38 interface Resolver { | 41 interface Resolver { |
| 39 // Resolves |mojo_name| and returns a ResolveResult containing metadata from | 42 // Resolves |mojo_name| and returns a ResolveResult containing metadata from |
| 40 // 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. |
| 41 ResolveMojoName(string mojo_name) => (ResolveResult result); | 44 ResolveMojoName(string mojo_name) => (ResolveResult result); |
| 42 }; | 45 }; |
| OLD | NEW |