Index: mojo/dart/packages/mojo/lib/mojo/service_provider.mojom.dart |
diff --git a/mojo/dart/packages/mojo/lib/mojo/service_provider.mojom.dart b/mojo/dart/packages/mojo/lib/mojo/service_provider.mojom.dart |
index c39eba11d9c5257feb7cb95768647c625a2da1ca..ca13c162cbac1fe202b981f2b53f31bae768a27f 100644 |
--- a/mojo/dart/packages/mojo/lib/mojo/service_provider.mojom.dart |
+++ b/mojo/dart/packages/mojo/lib/mojo/service_provider.mojom.dart |
@@ -8,6 +8,8 @@ import 'dart:async'; |
import 'package:mojo/bindings.dart' as bindings; |
import 'package:mojo/core.dart' as core; |
+import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; |
+import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as service_describer; |
@@ -84,8 +86,21 @@ class _ServiceProviderConnectToServiceParams extends bindings.Struct { |
} |
} |
+ |
+ |
+ |
const int _ServiceProvider_connectToServiceName = 0; |
+ |
+ |
+class _ServiceProviderServiceDescription implements service_describer.ServiceDescription { |
+ dynamic getTopLevelInterface([Function responseFactory]) => null; |
+ |
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; |
+ |
+ dynamic getAllTypeDefinitions([Function responseFactory]) => null; |
+} |
+ |
abstract class ServiceProvider { |
static const String serviceName = null; |
void connectToService(String interfaceName, core.MojoMessagePipeEndpoint pipe); |
@@ -107,6 +122,9 @@ class _ServiceProviderProxyImpl extends bindings.Proxy { |
return new _ServiceProviderProxyImpl.fromEndpoint(endpoint); |
} |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _ServiceProviderServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
default: |
@@ -251,6 +269,10 @@ class ServiceProviderStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _ServiceProviderServiceDescription(); |
} |
+ |