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

Unified Diff: runtime/bin/secure_socket.h

Issue 22887014: Remove the certificate management methods from dart:io (Closed) Base URL: https://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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/net/nss.gyp ('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
diff --git a/runtime/bin/secure_socket.h b/runtime/bin/secure_socket.h
index cdb4f65be98080b3c4839272bc92862c822b22ec..304ccd52dad4bfbf8abcf21023fce6612bf6041a 100644
--- a/runtime/bin/secure_socket.h
+++ b/runtime/bin/secure_socket.h
@@ -46,8 +46,6 @@ class SSLFilter {
kFirstEncrypted = kReadEncrypted
};
- static dart::Mutex* mutex; // To protect library initialization.
-
SSLFilter()
: callback_error(NULL),
string_start_(NULL),
@@ -89,17 +87,15 @@ class SSLFilter {
static void InitializeLibrary(const char* certificate_database,
const char* password,
bool use_builtin_root_certificates,
- bool read_only,
bool report_duplicate_initialization = true);
static Dart_Port GetServicePort();
Dart_Handle callback_error;
- static char* GetPassword() { return password_; }
-
private:
static const int kMemioBufferSize = 20 * KB;
static bool library_initialized_;
- static char* password_;
+ static const char* password_;
+ static dart::Mutex* mutex_; // To protect library initialization.
static NativeService filter_service_;
uint8_t* buffers_[kNumBuffers];
@@ -119,6 +115,7 @@ class SSLFilter {
return static_cast<BufferIndex>(i) >= kFirstEncrypted;
}
void InitializeBuffers(Dart_Handle dart_this);
+ void InitializePlatformData();
DISALLOW_COPY_AND_ASSIGN(SSLFilter);
};
« no previous file with comments | « runtime/bin/net/nss.gyp ('k') | runtime/bin/secure_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698