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

Unified Diff: third_party/mojo/src/mojo/public/dart/src/stub.dart

Issue 883843002: Update mojo sdk to rev 126532ce21c5c3c55a1e1693731411cb60169efd (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to review Created 5 years, 11 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: 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";
- }
}

Powered by Google App Engine
This is Rietveld 408576698