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

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

Issue 10916081: Add secure sockets to dart:io (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Switch to system of patched libraries in dart:io for new TlsSocket class. Created 8 years, 1 month 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 | lib/io/tls_socket.dart » ('j') | runtime/bin/bin.gypi » ('J')
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 patch class _BufferUtils { 5 patch class _BufferUtils {
6 patch static bool _isBuiltinList(List buffer) { 6 patch static bool _isBuiltinList(List buffer) {
7 throw new UnsupportedError("_isBuiltinList"); 7 throw new UnsupportedError("_isBuiltinList");
8 } 8 }
9 } 9 }
10 10
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 patch class ServerSocket { 160 patch class ServerSocket {
161 patch factory ServerSocket(String bindAddress, int port, int backlog) { 161 patch factory ServerSocket(String bindAddress, int port, int backlog) {
162 return new _ServerSocket(bindAddress, port, backlog); 162 return new _ServerSocket(bindAddress, port, backlog);
163 } 163 }
164 } 164 }
165 165
166 patch class Socket { 166 patch class Socket {
167 patch factory Socket(String host, int port) => new _Socket(host, port); 167 patch factory Socket(String host, int port) => new _Socket(host, port);
168 } 168 }
169 169
170 patch class TlsSocket {
171 patch factory TlsSocket(String host, int port) => new _TlsSocket(host, port);
172 }
173
170 patch class _StdIOUtils { 174 patch class _StdIOUtils {
171 patch static _getStdioHandle(Socket socket, int num) { 175 patch static _getStdioHandle(Socket socket, int num) {
172 throw new UnsupportedError("StdIOUtils._getStdioHandle"); 176 throw new UnsupportedError("StdIOUtils._getStdioHandle");
173 } 177 }
174 patch static _getStdioHandleType(int num) { 178 patch static _getStdioHandleType(int num) {
175 throw new UnsupportedError("StdIOUtils._getStdioHandleType"); 179 throw new UnsupportedError("StdIOUtils._getStdioHandleType");
176 } 180 }
177 } 181 }
OLDNEW
« no previous file with comments | « no previous file | lib/io/tls_socket.dart » ('j') | runtime/bin/bin.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698