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

Side by Side Diff: services/service_manager/public/interfaces/service.mojom

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 months 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 shell.mojom; 5 module service_manager.mojom;
6 6
7 import "services/service_manager/public/interfaces/capabilities.mojom"; 7 import "services/service_manager/public/interfaces/capabilities.mojom";
8 import "services/service_manager/public/interfaces/connector.mojom"; 8 import "services/service_manager/public/interfaces/connector.mojom";
9 import "services/service_manager/public/interfaces/interface_provider.mojom"; 9 import "services/service_manager/public/interfaces/interface_provider.mojom";
10 10
11 // Implemented by something "known to" the Mojo Shell (e.g. an application or 11 // Implemented by something "known to" the Mojo Shell (e.g. an application or
12 // service), for which an instance is tracked. It allows the implementor to 12 // service), for which an instance is tracked. It allows the implementor to
13 // receive lifecycle events and service inbound connection attempts. 13 // receive lifecycle events and service inbound connection attempts.
14 interface Service { 14 interface Service {
15 // Called by the shell once an instance for this application has been created. 15 // Called by the service manager once an instance for this service has been
16 // This method will be called exactly once before any other method is called. 16 // created. This method will be called exactly once before any other method is
17 // called.
17 // 18 //
18 // Parameters: 19 // Parameters:
19 // 20 //
20 // identity 21 // identity
21 // The identity of this instance in the shell. Includes: 22 // The identity of this instance in the service manager. Includes:
22 // * The resolved name used in the connection request that resulted in this 23 // * The resolved name used in the connection request that resulted in this
23 // instance being initialized. 24 // instance being initialized.
24 // * The user associated with this instance in the shell. This will never 25 // * The user associated with this instance in the service manager. This
25 // be kInheritUserID. 26 // will never be kInheritUserID.
26 // * The instance group this instance belongs to. 27 // * The instance group this instance belongs to.
27 // 28 //
28 // Response parameters: 29 // Response parameters:
29 // 30 //
30 // connector_request 31 // connector_request
31 // An optional Connector request for the shell to bind, allowing the 32 // An optional Connector request for the service manager to bind, allowing
32 // initialized client to connect to others. 33 // the initialized client to connect to others.
33 // 34 //
34 OnStart(Identity identity) => (Connector&? connector_request); 35 OnStart(Identity identity) => (Connector&? connector_request);
35 36
36 // Called when another application attempts to open a connection to this 37 // Called when another application attempts to open a connection to this
37 // application. An application implements this method to complete the exchange 38 // application. An application implements this method to complete the exchange
38 // of interface implementations with the remote application. See also 39 // of interface implementations with the remote application. See also
39 // documentation in shell.mojom for Connect(). The application originating 40 // documentation in service_manager.mojom for Connect(). The application
40 // the request is referred to as the "source" and the one receiving the 41 // originating the request is referred to as the "source" and the one
41 // "target". 42 // receiving the "target".
42 // 43 //
43 // Parameters: 44 // Parameters:
44 // 45 //
45 // source 46 // source
46 // The identity of the instance originating the connection. 47 // The identity of the instance originating the connection.
47 // 48 //
48 // interfaces 49 // interfaces
49 // A request for an InterfaceProvider by which the source application may 50 // A request for an InterfaceProvider by which the source application may
50 // seek to bind interface implementations exported by the target. 51 // seek to bind interface implementations exported by the target.
51 // 52 //
52 // allowed_capabilities 53 // allowed_capabilities
53 // A whitelist of interface names and capability classes that should be 54 // A whitelist of interface names and capability classes that should be
54 // made available to the source, according to the security policy described 55 // made available to the source, according to the security policy described
55 // by the source and target's manifests. Attempts to bind interfaces not in 56 // by the source and target's manifests. Attempts to bind interfaces not in
56 // this whitelist must not be fulfilled. 57 // this whitelist must not be fulfilled.
57 // 58 //
58 OnConnect(Identity source, 59 OnConnect(Identity source,
59 InterfaceProvider&? interfaces, 60 InterfaceProvider&? interfaces,
60 Interfaces required_interfaces, 61 Interfaces required_interfaces,
61 Classes required_classes); 62 Classes required_classes);
62 }; 63 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698