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

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

Issue 2741063003: [dart:io] Eagerly deallocate SSLFilter internals (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | runtime/bin/secure_socket_boringssl.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 RUNTIME_BIN_SECURE_SOCKET_BORINGSSL_H_ 5 #ifndef RUNTIME_BIN_SECURE_SOCKET_BORINGSSL_H_
6 #define RUNTIME_BIN_SECURE_SOCKET_BORINGSSL_H_ 6 #define RUNTIME_BIN_SECURE_SOCKET_BORINGSSL_H_
7 7
8 #if !defined(RUNTIME_BIN_SECURE_SOCKET_H_) 8 #if !defined(RUNTIME_BIN_SECURE_SOCKET_H_)
9 #error Do not include secure_socket_boringssl.h directly. Use secure_socket.h. 9 #error Do not include secure_socket_boringssl.h directly. Use secure_socket.h.
10 #endif 10 #endif
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 ~SSLFilter(); 99 ~SSLFilter();
100 100
101 Dart_Handle Init(Dart_Handle dart_this); 101 Dart_Handle Init(Dart_Handle dart_this);
102 void Connect(const char* hostname, 102 void Connect(const char* hostname,
103 SSL_CTX* context, 103 SSL_CTX* context,
104 bool is_server, 104 bool is_server,
105 bool request_client_certificate, 105 bool request_client_certificate,
106 bool require_client_certificate, 106 bool require_client_certificate,
107 Dart_Handle protocols_handle); 107 Dart_Handle protocols_handle);
108 void Destroy(); 108 void Destroy();
109 void FreeResources();
109 void Handshake(); 110 void Handshake();
110 void GetSelectedProtocol(Dart_NativeArguments args); 111 void GetSelectedProtocol(Dart_NativeArguments args);
111 void Renegotiate(bool use_session_cache, 112 void Renegotiate(bool use_session_cache,
112 bool request_client_certificate, 113 bool request_client_certificate,
113 bool require_client_certificate); 114 bool require_client_certificate);
114 void RegisterHandshakeCompleteCallback(Dart_Handle handshake_complete); 115 void RegisterHandshakeCompleteCallback(Dart_Handle handshake_complete);
115 void RegisterBadCertificateCallback(Dart_Handle callback); 116 void RegisterBadCertificateCallback(Dart_Handle callback);
116 Dart_Handle bad_certificate_callback() { 117 Dart_Handle bad_certificate_callback() {
117 return Dart_HandleFromPersistent(bad_certificate_callback_); 118 return Dart_HandleFromPersistent(bad_certificate_callback_);
118 } 119 }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 Dart_Handle InitializeBuffers(Dart_Handle dart_this); 160 Dart_Handle InitializeBuffers(Dart_Handle dart_this);
160 void InitializePlatformData(); 161 void InitializePlatformData();
161 162
162 DISALLOW_COPY_AND_ASSIGN(SSLFilter); 163 DISALLOW_COPY_AND_ASSIGN(SSLFilter);
163 }; 164 };
164 165
165 } // namespace bin 166 } // namespace bin
166 } // namespace dart 167 } // namespace dart
167 168
168 #endif // RUNTIME_BIN_SECURE_SOCKET_BORINGSSL_H_ 169 #endif // RUNTIME_BIN_SECURE_SOCKET_BORINGSSL_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/secure_socket_boringssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698