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

Unified Diff: runtime/bin/secure_socket.h

Issue 15772005: - Add different types for persistent and weak persistent handles (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/isolate_data.h ('k') | runtime/bin/secure_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/secure_socket.h
===================================================================
--- runtime/bin/secure_socket.h (revision 23307)
+++ runtime/bin/secure_socket.h (working copy)
@@ -89,7 +89,9 @@
void Handshake();
void RegisterHandshakeCompleteCallback(Dart_Handle handshake_complete);
void RegisterBadCertificateCallback(Dart_Handle callback);
- Dart_Handle bad_certificate_callback() { return bad_certificate_callback_; }
+ Dart_Handle bad_certificate_callback() {
+ return Dart_HandleFromPersistent(bad_certificate_callback_);
+ }
static void InitializeLibrary(const char* certificate_database,
const char* password,
bool use_builtin_root_certificates,
@@ -106,11 +108,11 @@
uint8_t* buffers_[kNumBuffers];
int buffer_size_;
int encrypted_buffer_size_;
- Dart_Handle string_start_;
- Dart_Handle string_length_;
- Dart_Handle dart_buffer_objects_[kNumBuffers];
- Dart_Handle handshake_complete_;
- Dart_Handle bad_certificate_callback_;
+ Dart_PersistentHandle string_start_;
+ Dart_PersistentHandle string_length_;
+ Dart_PersistentHandle dart_buffer_objects_[kNumBuffers];
+ Dart_PersistentHandle handshake_complete_;
+ Dart_PersistentHandle bad_certificate_callback_;
bool in_handshake_;
bool is_server_;
char* client_certificate_name_;
« no previous file with comments | « runtime/bin/isolate_data.h ('k') | runtime/bin/secure_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698