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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/io_patch.dart

Issue 12316036: Merge IO v2 branch to bleeding edge (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased to r18818 Created 7 years, 10 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 | « sdk/lib/_internal/compiler/implementation/dart2js.dart ('k') | sdk/lib/_internal/dartdoc/lib/dartdoc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/lib/io_patch.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/io_patch.dart b/sdk/lib/_internal/compiler/implementation/lib/io_patch.dart
index 0374de5b9824cae091accec39948254b7389a24d..9ed26105e5259ca255550ee541b92c98bbf9441e 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/io_patch.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/io_patch.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -166,23 +166,43 @@ patch class Process {
}
}
+patch class RawServerSocket {
+ patch static Future<RawServerSocket> bind([String address = "127.0.0.1",
+ int port = 0,
+ int backlog = 0]) {
+ throw new UnsupportedError("RawServerSocket.bind");
+ }
+}
+
patch class ServerSocket {
- patch factory ServerSocket(String bindAddress, int port, int backlog) {
- throw new UnsupportedError("ServerSocket constructor");
+ patch static Future<ServerSocket> bind([String address = "127.0.0.1",
+ int port = 0,
+ int backlog = 0]) {
+ throw new UnsupportedError("ServerSocket.bind");
+ }
+}
+
+patch class RawSocket {
+ patch static Future<RawSocket> connect(String host, int port) {
+ throw new UnsupportedError("RawSocket constructor");
}
}
patch class Socket {
- patch factory Socket(String host, int port) {
+ patch static Future<Socket> connect(String host, int port) {
throw new UnsupportedError("Socket constructor");
}
}
patch class SecureSocket {
+ patch factory SecureSocket._(RawSecureSocket rawSocket) {
+ throw new UnsupportedError("SecureSocket constructor");
+ }
+
patch static void initialize({String database,
String password,
bool useBuiltinRoots: true}) {
- throw new UnsupportedError("SecureSocket.setCertificateDatabase");
+ throw new UnsupportedError("SecureSocket.initialize");
}
}
@@ -199,7 +219,7 @@ patch class _StdIOUtils {
patch static OutputStream _getStdioOutputStream(int fd) {
throw new UnsupportedError("StdIOUtils._getStdioOutputStream");
}
- patch static int _socketType(Socket socket) {
+ patch static int _socketType(nativeSocket) {
throw new UnsupportedError("StdIOUtils._socketType");
}
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/dart2js.dart ('k') | sdk/lib/_internal/dartdoc/lib/dartdoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698