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

Side by Side Diff: sdk/lib/io/security_context.dart

Issue 2880543002: Revert "Change some platform libraries to use `part of URI`." (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « sdk/lib/io/secure_socket.dart ('k') | sdk/lib/io/service_object.dart » ('j') | 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 part of "dart:io"; 5 part of dart.io;
6 6
7 /** 7 /**
8 * The object containing the certificates to trust when making 8 * The object containing the certificates to trust when making
9 * a secure client connection, and the certificate chain and 9 * a secure client connection, and the certificate chain and
10 * private key to serve from a secure server. 10 * private key to serve from a secure server.
11 * 11 *
12 * The [SecureSocket] and [SecureServerSocket] classes take a SecurityContext 12 * The [SecureSocket] and [SecureServerSocket] classes take a SecurityContext
13 * as an argument to their connect and bind methods. 13 * as an argument to their connect and bind methods.
14 * 14 *
15 * Certificates and keys can be added to a SecurityContext from either PEM 15 * Certificates and keys can be added to a SecurityContext from either PEM
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 } 258 }
259 259
260 if (bytes.length >= (1 << 13)) { 260 if (bytes.length >= (1 << 13)) {
261 throw new ArgumentError( 261 throw new ArgumentError(
262 'The maximum message length supported is 2^13-1.'); 262 'The maximum message length supported is 2^13-1.');
263 } 263 }
264 264
265 return new Uint8List.fromList(bytes); 265 return new Uint8List.fromList(bytes);
266 } 266 }
267 } 267 }
OLDNEW
« no previous file with comments | « sdk/lib/io/secure_socket.dart ('k') | sdk/lib/io/service_object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698