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

Side by Side Diff: runtime/bin/secure_socket_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: 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 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 SecureSocket { 5 patch class SecureSocket {
6 /* patch */ static void initialize({String database, 6 /* patch */ static void initialize({String database,
7 String password, 7 String password,
8 bool useBuiltinRoots: true}) 8 bool useBuiltinRoots: true})
9 native "SecureSocket_InitializeLibrary"; 9 native "SecureSocket_InitializeLibrary";
10 } 10 }
(...skipping 10 matching lines...) Expand all
21 * and certificate verification. 21 * and certificate verification.
22 * 22 *
23 * The filter exposes its input and output buffers as Dart objects that 23 * The filter exposes its input and output buffers as Dart objects that
24 * are backed by an external C array of bytes, so that both Dart code and 24 * are backed by an external C array of bytes, so that both Dart code and
25 * native code can access the same data. 25 * native code can access the same data.
26 */ 26 */
27 class _SecureFilterImpl 27 class _SecureFilterImpl
28 extends NativeFieldWrapperClass1 28 extends NativeFieldWrapperClass1
29 implements _SecureFilter { 29 implements _SecureFilter {
30 _SecureFilterImpl() { 30 _SecureFilterImpl() {
31 buffers = new List<_ExternalBuffer>(_SecureSocket.NUM_BUFFERS); 31 buffers = new List<_ExternalBuffer>(_RawSecureSocket.NUM_BUFFERS);
32 for (int i = 0; i < _SecureSocket.NUM_BUFFERS; ++i) { 32 for (int i = 0; i < _RawSecureSocket.NUM_BUFFERS; ++i) {
33 buffers[i] = new _ExternalBuffer(); 33 buffers[i] = new _ExternalBuffer();
34 } 34 }
35 } 35 }
36 36
37 void connect(String hostName, 37 void connect(String hostName,
38 int port, 38 int port,
39 bool is_server, 39 bool is_server,
40 String certificateName, 40 String certificateName,
41 bool requestClientCertificate, 41 bool requestClientCertificate,
42 bool requireClientCertificate, 42 bool requireClientCertificate,
(...skipping 15 matching lines...) Expand all
58 int processBuffer(int bufferIndex) native "SecureSocket_ProcessBuffer"; 58 int processBuffer(int bufferIndex) native "SecureSocket_ProcessBuffer";
59 59
60 void registerBadCertificateCallback(Function callback) 60 void registerBadCertificateCallback(Function callback)
61 native "SecureSocket_RegisterBadCertificateCallback"; 61 native "SecureSocket_RegisterBadCertificateCallback";
62 62
63 void registerHandshakeCompleteCallback(Function handshakeCompleteHandler) 63 void registerHandshakeCompleteCallback(Function handshakeCompleteHandler)
64 native "SecureSocket_RegisterHandshakeCompleteCallback"; 64 native "SecureSocket_RegisterHandshakeCompleteCallback";
65 65
66 List<_ExternalBuffer> buffers; 66 List<_ExternalBuffer> buffers;
67 } 67 }
OLDNEW
« no previous file with comments | « runtime/bin/secure_socket.cc ('k') | runtime/bin/socket.cc » ('j') | runtime/tests/vm/vm.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698