Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: services/catalog/public/interfaces/catalog.mojom

Issue 2425563004: Support reading multiple InterfaceProviderSpecs from manifests (Closed)
Patch Set: . Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/catalog/instance.cc ('k') | services/catalog/store.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"; 7 import "mojo/common/common_custom_types.mojom";
8 8
9 struct Entry { 9 struct Entry {
10 string name; 10 string name;
11 string display_name; 11 string display_name;
12 }; 12 };
13 13
14 interface Catalog { 14 interface Catalog {
15 // Returns the catalog entries for the specified mojo names. 15 // Returns the catalog entries for the specified mojo names.
16 // If |names| is null, all available entries are returned. 16 // If |names| is null, all available entries are returned.
17 [Sync] 17 [Sync]
18 GetEntries(array<string>? names) => (array<Entry> entries); 18 GetEntries(array<string>? names) => (array<Entry> entries);
19 19
20 // 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
21 // specified class. 21 // specified capability.
22 GetEntriesProvidingClass(string clazz) => (array<Entry> entries); 22 GetEntriesProvidingCapability(string capability) => (array<Entry> entries);
23 23
24 // 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
25 // specified MIME type. 25 // specified MIME type.
26 GetEntriesConsumingMIMEType(string mime_type) => (array<Entry> entries); 26 GetEntriesConsumingMIMEType(string mime_type) => (array<Entry> entries);
27 27
28 // 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
29 // specified scheme. 29 // specified scheme.
30 GetEntriesSupportingScheme(string protocol_scheme) => (array<Entry> entries); 30 GetEntriesSupportingScheme(string protocol_scheme) => (array<Entry> entries);
31 }; 31 };
32 32
33 // A control interface which may be exposed to privileged services. 33 // A control interface which may be exposed to privileged services.
34 interface CatalogControl { 34 interface CatalogControl {
35 // Overrides the manifest path for a specific service named |name|. 35 // Overrides the manifest path for a specific service named |name|.
36 [Sync] 36 [Sync]
37 OverrideManifestPath(string name, mojo.common.mojom.FilePath path) => (); 37 OverrideManifestPath(string name, mojo.common.mojom.FilePath path) => ();
38 }; 38 };
OLDNEW
« no previous file with comments | « services/catalog/instance.cc ('k') | services/catalog/store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698