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

Unified Diff: runtime/bin/secure_socket.h

Issue 11819062: Speed up secure sockets by increasing encrypted buffer size. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « no previous file | 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
diff --git a/runtime/bin/secure_socket.h b/runtime/bin/secure_socket.h
index 07be8faa17e89d5a97417910793550fca46620e5..551fde01c7be36306787c0d5156d11f7debce67c 100644
--- a/runtime/bin/secure_socket.h
+++ b/runtime/bin/secure_socket.h
@@ -59,7 +59,8 @@ class SSLFilter {
kWritePlaintext,
kReadEncrypted,
kWriteEncrypted,
- kNumBuffers
+ kNumBuffers,
+ kFirstEncrypted = kReadEncrypted
};
SSLFilter()
@@ -98,7 +99,8 @@ class SSLFilter {
static dart::Mutex mutex_; // To protect library initialization.
uint8_t* buffers_[kNumBuffers];
- int64_t buffer_size_;
+ int buffer_size_;
+ int encrypted_buffer_size_;
Dart_Handle string_start_;
Dart_Handle string_length_;
Dart_Handle dart_buffer_objects_[kNumBuffers];
@@ -109,6 +111,9 @@ class SSLFilter {
char* client_certificate_name_;
PRFileDesc* filter_;
+ static bool isEncrypted(int i) {
+ return static_cast<BufferIndex>(i) >= kFirstEncrypted;
+ }
void InitializeBuffers(Dart_Handle dart_this);
void InitializePlatformData();
« no previous file with comments | « no previous file | runtime/bin/secure_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698