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

Side by Side Diff: lib/compiler/implementation/lib/io.dart

Issue 10826305: Add stub for TlsSocket to dart2js library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // This is a copy of the VM's dart:io library. This API is not usable 5 // This is a copy of the VM's dart:io library. This API is not usable
6 // when running inside a web browser. Nevertheless, Leg provides a 6 // when running inside a web browser. Nevertheless, Leg provides a
7 // mock version of the dart:io library so that it can statically 7 // mock version of the dart:io library so that it can statically
8 // analyze programs that use dart:io. 8 // analyze programs that use dart:io.
9 9
10 // TODO(ahe): Separate API from implementation details. 10 // TODO(ahe): Separate API from implementation details.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #source('../../../../runtime/bin/socket.dart'); 47 #source('../../../../runtime/bin/socket.dart');
48 // Uses native keyword. 48 // Uses native keyword.
49 // #source('../../../../runtime/bin/socket_impl.dart'); 49 // #source('../../../../runtime/bin/socket_impl.dart');
50 #source('../../../../runtime/bin/socket_stream.dart'); 50 #source('../../../../runtime/bin/socket_stream.dart');
51 #source('../../../../runtime/bin/socket_stream_impl.dart'); 51 #source('../../../../runtime/bin/socket_stream_impl.dart');
52 // Uses native keyword. 52 // Uses native keyword.
53 // #source('../../../../runtime/bin/stdio.dart'); 53 // #source('../../../../runtime/bin/stdio.dart');
54 #source('../../../../runtime/bin/stream_util.dart'); 54 #source('../../../../runtime/bin/stream_util.dart');
55 #source('../../../../runtime/bin/string_stream.dart'); 55 #source('../../../../runtime/bin/string_stream.dart');
56 #source('../../../../runtime/bin/timer_impl.dart'); 56 #source('../../../../runtime/bin/timer_impl.dart');
57 #source('../../../../runtime/bin/tls_socket.dart');
58 // Uses native keyword.
59 // #source('../../../../runtime/bin/tls_socket_impl.dart');
57 #source('../../../../runtime/bin/websocket.dart'); 60 #source('../../../../runtime/bin/websocket.dart');
58 #source('../../../../runtime/bin/websocket_impl.dart'); 61 #source('../../../../runtime/bin/websocket_impl.dart');
59 62
60 class _File { 63 class _File {
61 factory File(arg) { 64 factory File(arg) {
62 throw new UnsupportedOperationException('new File($arg)'); 65 throw new UnsupportedOperationException('new File($arg)');
63 } 66 }
64 67
65 factory File.fromPath(arg) { 68 factory File.fromPath(arg) {
66 throw new UnsupportedOperationException('new File.fromPath($arg)'); 69 throw new UnsupportedOperationException('new File.fromPath($arg)');
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 static void set _eventHandler(_EventHandler e) { 159 static void set _eventHandler(_EventHandler e) {
157 throw new UnsupportedOperationException('_EventHandler._eventhandler = $e'); 160 throw new UnsupportedOperationException('_EventHandler._eventhandler = $e');
158 } 161 }
159 } 162 }
160 163
161 final InputStream stdin = null; 164 final InputStream stdin = null;
162 165
163 final OutputStream stdout = null; 166 final OutputStream stdout = null;
164 167
165 final OutputStream stderr = null; 168 final OutputStream stderr = null;
169
170 class _TlsSocket {
171 factory TlsSocket(String host, int port) {
172 throw new UnsupportedOperationException('new TlsSocket($host, $port)');
173 }
174 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698