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

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

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 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 side-by-side diff with in-line comments
Download patch
Index: services/service_manager/public/interfaces/service.mojom
diff --git a/services/service_manager/public/interfaces/service.mojom b/services/service_manager/public/interfaces/service.mojom
index aeb66172a4a2d5c1b12fa8bfecdea6f92d25e8e6..e5f8d681928bc6b713d660a1647405f0872eca47 100644
--- a/services/service_manager/public/interfaces/service.mojom
+++ b/services/service_manager/public/interfaces/service.mojom
@@ -7,6 +7,7 @@ module service_manager.mojom;
import "services/service_manager/public/interfaces/connector.mojom";
import "services/service_manager/public/interfaces/interface_provider.mojom";
import "services/service_manager/public/interfaces/interface_provider_spec.mojom";
+import "services/service_manager/public/interfaces/service_control.mojom";
// Metadata describing an instance of a service.
struct ServiceInfo {
@@ -41,7 +42,11 @@ interface Service {
// An optional Connector request for the service manager to bind, allowing
// the initialized client to connect to others.
//
- OnStart(ServiceInfo info) => (Connector&? connector_request);
+ // control_request
+ // An optional associated ServiceControl request.
+ //
+ OnStart(ServiceInfo info) => (Connector&? connector_request,
+ associated ServiceControl&? control_request);
// Called when another service attempts to open a connection to this
// service. A service implements this method to complete the exchange
@@ -50,6 +55,8 @@ interface Service {
// originating the request is referred to as the "source" and the one
// receiving the "target".
//
+ // The Service must respond to acknowledge receipt of the request.
+ //
// Parameters:
//
// source_info
@@ -59,6 +66,5 @@ interface Service {
// A request for an InterfaceProvider by which the source service may
// seek to bind interface implementations exported by the target.
//
- OnConnect(ServiceInfo source_info,
- InterfaceProvider&? interfaces);
+ OnConnect(ServiceInfo source_info, InterfaceProvider&? interfaces) => ();
};
« no previous file with comments | « services/service_manager/public/interfaces/BUILD.gn ('k') | services/service_manager/public/interfaces/service_control.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698