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

Unified Diff: services/shell/public/interfaces/service.mojom

Issue 2118083002: ShellClient -> Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus2
Patch Set: . Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: services/shell/public/interfaces/service.mojom
diff --git a/services/shell/public/interfaces/shell_client.mojom b/services/shell/public/interfaces/service.mojom
similarity index 87%
rename from services/shell/public/interfaces/shell_client.mojom
rename to services/shell/public/interfaces/service.mojom
index 04618cac0631ebdbbf72ff09efd7d26ea5ab5b6c..ea64c3bbaee5b4061aa8cc0bf3b62db5bd622be0 100644
--- a/services/shell/public/interfaces/shell_client.mojom
+++ b/services/shell/public/interfaces/service.mojom
@@ -11,7 +11,7 @@ import "services/shell/public/interfaces/interface_provider.mojom";
// Implemented by something "known to" the Mojo Shell (e.g. an application or
// service), for which an instance is tracked. It allows the implementor to
// receive lifecycle events and service inbound connection attempts.
-interface ShellClient {
+interface Service {
// Called by the shell once an instance for this application has been created.
// This method will be called exactly once before any other method is called.
//
@@ -35,7 +35,7 @@ interface ShellClient {
// An optional Connector request for the shell to bind, allowing the
// initialized client to connect to others.
//
- Initialize(Identity identity, uint32 id) => (Connector&? connector_request);
+ OnStart(Identity identity, uint32 id) => (Connector&? connector_request);
// Called when another application attempts to open a connection to this
// application. An application implements this method to complete the exchange
@@ -69,10 +69,10 @@ interface ShellClient {
// resolved_name
// The resolved name used to complete this connection.
//
- AcceptConnection(Identity source,
- uint32 source_id,
- InterfaceProvider&? local_interfaces,
- InterfaceProvider? remote_interfaces,
- CapabilityRequest allowed_capabilities,
- string resolved_name);
+ OnConnect(Identity source,
+ uint32 source_id,
+ InterfaceProvider&? local_interfaces,
+ InterfaceProvider? remote_interfaces,
+ CapabilityRequest allowed_capabilities,
+ string resolved_name);
};
« no previous file with comments | « services/shell/public/interfaces/connector.mojom ('k') | services/shell/public/interfaces/service_factory.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698