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

Side by Side Diff: runtime/bin/secure_socket_patch.dart

Issue 22685007: Implement updated method overriding rules in the vm. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | runtime/lib/collection_patch.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) 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 */ factory SecureSocket._(RawSecureSocket rawSocket) => 6 /* patch */ factory SecureSocket._(RawSecureSocket rawSocket) =>
7 new _SecureSocket(rawSocket); 7 new _SecureSocket(rawSocket);
8 8
9 /* patch */ static void initialize({String database, 9 /* patch */ static void initialize({String database,
10 String password, 10 String password,
11 bool useBuiltinRoots: true, 11 bool useBuiltinRoots: true,
12 bool readOnly: true}) 12 bool readOnly: true})
13 native "SecureSocket_InitializeLibrary"; 13 native "SecureSocket_InitializeLibrary";
14 14
15 /* patch */ static X509Certificate addCertificate(List<int> certificate, 15 /* patch */ static X509Certificate addCertificate(List<int> certificate,
16 String trust) 16 String trust)
17 native "SecureSocket_AddCertificate"; 17 native "SecureSocket_AddCertificate";
18 18
19 /* patch */ static importCertificatesWithPrivateKeys(List<int> certificates, 19 /* patch */ static importCertificatesWithPrivateKeys(List<int> certificates,
20 String password) 20 String password)
21 native "SecureSocket_ImportCertificatesWithPrivateKeys"; 21 native "SecureSocket_ImportCertificatesWithPrivateKeys";
22 22
23 /* patch */ static X509Certificate changeTrust(String nickname, 23 /* patch */ static X509Certificate changeTrust(String nickname,
24 String trust) 24 String trust)
25 native "SecureSocket_ChangeTrust"; 25 native "SecureSocket_ChangeTrust";
26 26
27 /* patch */ static getCertificate(String nickname) 27 /* patch */ static X509Certificate getCertificate(String nickname)
28 native "SecureSocket_GetCertificate"; 28 native "SecureSocket_GetCertificate";
29 29
30 /* patch */ static removeCertificate(String nickname) 30 /* patch */ static removeCertificate(String nickname)
31 native "SecureSocket_RemoveCertificate"; 31 native "SecureSocket_RemoveCertificate";
32 } 32 }
33 33
34 34
35 patch class _SecureFilter { 35 patch class _SecureFilter {
36 /* patch */ factory _SecureFilter() => new _SecureFilterImpl(); 36 /* patch */ factory _SecureFilter() => new _SecureFilterImpl();
37 37
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 native "SecureSocket_RegisterBadCertificateCallback"; 123 native "SecureSocket_RegisterBadCertificateCallback";
124 124
125 void registerHandshakeCompleteCallback(Function handshakeCompleteHandler) 125 void registerHandshakeCompleteCallback(Function handshakeCompleteHandler)
126 native "SecureSocket_RegisterHandshakeCompleteCallback"; 126 native "SecureSocket_RegisterHandshakeCompleteCallback";
127 127
128 // This is a security issue, as it exposes a raw pointer to Dart code. 128 // This is a security issue, as it exposes a raw pointer to Dart code.
129 int _pointer() native "SecureSocket_FilterPointer"; 129 int _pointer() native "SecureSocket_FilterPointer";
130 130
131 List<_ExternalBuffer> buffers; 131 List<_ExternalBuffer> buffers;
132 } 132 }
OLDNEW
« no previous file with comments | « no previous file | runtime/lib/collection_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698