| 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 struct Entry { | 7 struct Entry { |
| 8 string name; | 8 string name; |
| 9 string display_name; | 9 string display_name; |
| 10 }; | 10 }; |
| 11 | 11 |
| 12 interface Catalog { | 12 interface Catalog { |
| 13 // Returns the catalog entries for the specified mojo names. | 13 // Returns the catalog entries for the specified mojo names. |
| 14 // If |names| is null, all available entries are returned. | 14 // If |names| is null, all available entries are returned. |
| 15 [Sync] |
| 15 GetEntries(array<string>? names) => (array<Entry> entries); | 16 GetEntries(array<string>? names) => (array<Entry> entries); |
| 16 | 17 |
| 17 // Returns the entry(ies) for applications that export to the caller the | 18 // Returns the entry(ies) for applications that export to the caller the |
| 18 // specified class. | 19 // specified class. |
| 19 GetEntriesProvidingClass(string clazz) => (array<Entry> entries); | 20 GetEntriesProvidingClass(string clazz) => (array<Entry> entries); |
| 20 | 21 |
| 21 // Returns the entry(ies) for applications that can consume content of the | 22 // Returns the entry(ies) for applications that can consume content of the |
| 22 // specified MIME type. | 23 // specified MIME type. |
| 23 GetEntriesConsumingMIMEType(string mime_type) => (array<Entry> entries); | 24 GetEntriesConsumingMIMEType(string mime_type) => (array<Entry> entries); |
| 24 | 25 |
| 25 // Returns the entry(ies) for applications that can handle links with the | 26 // Returns the entry(ies) for applications that can handle links with the |
| 26 // specified scheme. | 27 // specified scheme. |
| 27 GetEntriesSupportingScheme(string protocol_scheme) => (array<Entry> entries); | 28 GetEntriesSupportingScheme(string protocol_scheme) => (array<Entry> entries); |
| 28 }; | 29 }; |
| OLD | NEW |