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

Unified Diff: runtime/bin/socket_stream.dart

Issue 10938010: Switch from interfaces to abstract classes in dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Add test binaries. Created 8 years, 3 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
« no previous file with comments | « runtime/bin/socket.dart ('k') | runtime/bin/string_stream.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket_stream.dart
diff --git a/runtime/bin/socket_stream.dart b/runtime/bin/socket_stream.dart
index 22ab37eef4bd1201d9a5fb1e9ba97aa38b84a84a..668cfe0abbb5dba8fc1dee384f4afe4b369fecc8 100644
--- a/runtime/bin/socket_stream.dart
+++ b/runtime/bin/socket_stream.dart
@@ -6,21 +6,20 @@
* [SocketInputStream] makes it possible to stream over data received
* from a [Socket].
*/
-interface SocketInputStream extends InputStream default _SocketInputStream {
+abstract class SocketInputStream implements InputStream {
/**
* Create a [SocketInputStream] for streaming from a [Socket].
*/
- SocketInputStream(Socket socket);
-
+ factory SocketInputStream(Socket socket) => new _SocketInputStream(socket);
}
/**
* [SocketOutputStream] makes it possible to stream data to a
* [Socket].
*/
-interface SocketOutputStream extends OutputStream default _SocketOutputStream {
+abstract class SocketOutputStream implements OutputStream {
/**
* Create a [SocketOutputStream] for streaming to a [Socket].
*/
- SocketOutputStream(Socket socket);
+ factory SocketOutputStream(Socket socket) => new _SocketOutputStream(socket);
}
« no previous file with comments | « runtime/bin/socket.dart ('k') | runtime/bin/string_stream.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698