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 catalog.mojom; | 5 module catalog.mojom; |
6 | 6 |
| 7 import "mojo/common/common_custom_types.mojom"; |
| 8 |
7 struct Entry { | 9 struct Entry { |
8 string name; | 10 string name; |
9 string display_name; | 11 string display_name; |
10 }; | 12 }; |
11 | 13 |
12 interface Catalog { | 14 interface Catalog { |
13 // Returns the catalog entries for the specified mojo names. | 15 // Returns the catalog entries for the specified mojo names. |
14 // If |names| is null, all available entries are returned. | 16 // If |names| is null, all available entries are returned. |
15 [Sync] | 17 [Sync] |
16 GetEntries(array<string>? names) => (array<Entry> entries); | 18 GetEntries(array<string>? names) => (array<Entry> entries); |
17 | 19 |
18 // Returns the entry(ies) for applications that export to the caller the | 20 // Returns the entry(ies) for applications that export to the caller the |
19 // specified class. | 21 // specified class. |
20 GetEntriesProvidingClass(string clazz) => (array<Entry> entries); | 22 GetEntriesProvidingClass(string clazz) => (array<Entry> entries); |
21 | 23 |
22 // Returns the entry(ies) for applications that can consume content of the | 24 // Returns the entry(ies) for applications that can consume content of the |
23 // specified MIME type. | 25 // specified MIME type. |
24 GetEntriesConsumingMIMEType(string mime_type) => (array<Entry> entries); | 26 GetEntriesConsumingMIMEType(string mime_type) => (array<Entry> entries); |
25 | 27 |
26 // Returns the entry(ies) for applications that can handle links with the | 28 // Returns the entry(ies) for applications that can handle links with the |
27 // specified scheme. | 29 // specified scheme. |
28 GetEntriesSupportingScheme(string protocol_scheme) => (array<Entry> entries); | 30 GetEntriesSupportingScheme(string protocol_scheme) => (array<Entry> entries); |
29 }; | 31 }; |
| 32 |
| 33 // A control interface which may be exposed to privileged services. |
| 34 interface CatalogControl { |
| 35 // Overrides the manifest path for a specific service named |name|. |
| 36 [Sync] |
| 37 OverrideManifestPath(string name, mojo.common.mojom.FilePath path) => (); |
| 38 }; |
OLD | NEW |