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

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

Issue 11308271: Add built-in root certificates to dart:io SecureSocket. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix dart2js errors on new dart:io stuff. Created 8 years 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
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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 patch factory ServerSocket(String bindAddress, int port, int backlog) { 164 patch factory ServerSocket(String bindAddress, int port, int backlog) {
165 return new _ServerSocket(bindAddress, port, backlog); 165 return new _ServerSocket(bindAddress, port, backlog);
166 } 166 }
167 } 167 }
168 168
169 patch class Socket { 169 patch class Socket {
170 patch factory Socket(String host, int port) => new _Socket(host, port); 170 patch factory Socket(String host, int port) => new _Socket(host, port);
171 } 171 }
172 172
173 patch class SecureSocket { 173 patch class SecureSocket {
174 patch static void setCertificateDatabase(String certificateDatabase, 174 patch static void initialize({String database,
175 [String password]) { 175 String password,
176 bool useBuiltinRoots: true}) {
176 throw new UnsupportedError("SecureSocket.setCertificateDatabase"); 177 throw new UnsupportedError("SecureSocket.setCertificateDatabase");
177 } 178 }
178 } 179 }
179 180
180 patch class _SecureFilter { 181 patch class _SecureFilter {
181 patch factory _SecureFilter() { 182 patch factory _SecureFilter() {
182 throw new UnsupportedError("_SecureFilter._SecureFilter"); 183 throw new UnsupportedError("_SecureFilter._SecureFilter");
183 } 184 }
184 } 185 }
185 186
186 patch class _StdIOUtils { 187 patch class _StdIOUtils {
187 patch static _getStdioHandle(Socket socket, int num) { 188 patch static _getStdioHandle(Socket socket, int num) {
188 throw new UnsupportedError("StdIOUtils._getStdioHandle"); 189 throw new UnsupportedError("StdIOUtils._getStdioHandle");
189 } 190 }
190 patch static _getStdioHandleType(int num) { 191 patch static _getStdioHandleType(int num) {
191 throw new UnsupportedError("StdIOUtils._getStdioHandleType"); 192 throw new UnsupportedError("StdIOUtils._getStdioHandleType");
192 } 193 }
193 } 194 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698