Index: third_party/mojo/src/mojo/public/dart/src/stub.dart |
diff --git a/third_party/mojo/src/mojo/public/dart/src/interface.dart b/third_party/mojo/src/mojo/public/dart/src/stub.dart |
similarity index 78% |
rename from third_party/mojo/src/mojo/public/dart/src/interface.dart |
rename to third_party/mojo/src/mojo/public/dart/src/stub.dart |
index 0e73214505018c03387ec75de810063470aff139..b4ab2930a48d161492814382a8aa6d99ebaf5d48 100644 |
--- a/third_party/mojo/src/mojo/public/dart/src/interface.dart |
+++ b/third_party/mojo/src/mojo/public/dart/src/stub.dart |
@@ -4,15 +4,15 @@ |
part of bindings; |
-abstract class Interface extends core.MojoEventStreamListener { |
+abstract class Stub extends core.MojoEventStreamListener { |
int _outstandingResponseFutures = 0; |
bool _isClosing = false; |
- Interface(core.MojoMessagePipeEndpoint endpoint) : super(endpoint); |
+ Stub(core.MojoMessagePipeEndpoint endpoint) : super(endpoint); |
- Interface.fromHandle(core.MojoHandle handle) : super.fromHandle(handle); |
+ Stub.fromHandle(core.MojoHandle handle) : super.fromHandle(handle); |
- Interface.unbound() : super.unbound(); |
+ Stub.unbound() : super.unbound(); |
Future<Message> handleMessage(ServiceMessage message); |
@@ -85,19 +85,4 @@ abstract class Interface extends core.MojoEventStreamListener { |
var header = new MessageHeader.withRequestId(name, flags, id); |
return response.serializeWithHeader(header); |
} |
- |
- void sendMessage(Struct message, int name) { |
- var header = new MessageHeader(name); |
- var serviceMessage = message.serializeWithHeader(header); |
- endpoint.write(serviceMessage.buffer, |
- serviceMessage.buffer.lengthInBytes, |
- serviceMessage.handles); |
- if (!endpoint.status.isOk) { |
- throw "message pipe write failed: ${endpoint.status}"; |
- } |
- } |
- |
- Future sendMessageWithRequestId(Struct response, int name, int id) { |
- throw "The client interface should not expect a response"; |
- } |
} |