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

Side by Side Diff: runtime/bin/secure_socket.h

Issue 18500006: dart:io | Pass errors from multithreaded encryption back to Dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Compile libssl_dart without DEBUG defined. Created 7 years, 5 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 | « runtime/bin/net/ssl.gyp ('k') | runtime/bin/secure_socket.cc » ('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 #ifndef BIN_SECURE_SOCKET_H_ 5 #ifndef BIN_SECURE_SOCKET_H_
6 #define BIN_SECURE_SOCKET_H_ 6 #define BIN_SECURE_SOCKET_H_
7 7
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <string.h> 9 #include <string.h>
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void RegisterHandshakeCompleteCallback(Dart_Handle handshake_complete); 69 void RegisterHandshakeCompleteCallback(Dart_Handle handshake_complete);
70 void RegisterBadCertificateCallback(Dart_Handle callback); 70 void RegisterBadCertificateCallback(Dart_Handle callback);
71 Dart_Handle bad_certificate_callback() { 71 Dart_Handle bad_certificate_callback() {
72 return Dart_HandleFromPersistent(bad_certificate_callback_); 72 return Dart_HandleFromPersistent(bad_certificate_callback_);
73 } 73 }
74 intptr_t ProcessReadPlaintextBuffer(int start, int end); 74 intptr_t ProcessReadPlaintextBuffer(int start, int end);
75 intptr_t ProcessWritePlaintextBuffer(int start1, int end1, 75 intptr_t ProcessWritePlaintextBuffer(int start1, int end1,
76 int start2, int end2); 76 int start2, int end2);
77 intptr_t ProcessReadEncryptedBuffer(int start, int end); 77 intptr_t ProcessReadEncryptedBuffer(int start, int end);
78 intptr_t ProcessWriteEncryptedBuffer(int start, int end); 78 intptr_t ProcessWriteEncryptedBuffer(int start, int end);
79 void ProcessAllBuffers(int starts[kNumBuffers], 79 bool ProcessAllBuffers(int starts[kNumBuffers],
80 int ends[kNumBuffers], 80 int ends[kNumBuffers],
81 bool in_handshake); 81 bool in_handshake);
82 Dart_Handle PeerCertificate(); 82 Dart_Handle PeerCertificate();
83 static void InitializeLibrary(const char* certificate_database, 83 static void InitializeLibrary(const char* certificate_database,
84 const char* password, 84 const char* password,
85 bool use_builtin_root_certificates, 85 bool use_builtin_root_certificates,
86 bool report_duplicate_initialization = true); 86 bool report_duplicate_initialization = true);
87 static Dart_Port GetServicePort(); 87 static Dart_Port GetServicePort();
88 88
89 private: 89 private:
(...skipping 22 matching lines...) Expand all
112 void InitializeBuffers(Dart_Handle dart_this); 112 void InitializeBuffers(Dart_Handle dart_this);
113 void InitializePlatformData(); 113 void InitializePlatformData();
114 114
115 DISALLOW_COPY_AND_ASSIGN(SSLFilter); 115 DISALLOW_COPY_AND_ASSIGN(SSLFilter);
116 }; 116 };
117 117
118 } // namespace bin 118 } // namespace bin
119 } // namespace dart 119 } // namespace dart
120 120
121 #endif // BIN_SECURE_SOCKET_H_ 121 #endif // BIN_SECURE_SOCKET_H_
OLDNEW
« no previous file with comments | « runtime/bin/net/ssl.gyp ('k') | runtime/bin/secure_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698