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

Unified Diff: sdk/lib/io/secure_server_socket.dart

Issue 11419138: Rename TlsSocket to SecureSocket, and all other Tls... items to Secure.... (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rename C++ class from Filter to SSLFilter. Created 8 years, 1 month 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 | « sdk/lib/io/iolib_sources.gypi ('k') | sdk/lib/io/secure_socket.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/secure_server_socket.dart
diff --git a/sdk/lib/io/tls_server_socket.dart b/sdk/lib/io/secure_server_socket.dart
similarity index 78%
rename from sdk/lib/io/tls_server_socket.dart
rename to sdk/lib/io/secure_server_socket.dart
index 559f7a6ca22a18178dc7951d96d8e1454c98b3fc..2ab290aaa287952179a9ec7727a5bc9d51febd21 100644
--- a/sdk/lib/io/tls_server_socket.dart
+++ b/sdk/lib/io/secure_server_socket.dart
@@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
-abstract class TlsServerSocket implements ServerSocket {
+abstract class SecureServerSocket implements ServerSocket {
/**
* Constructs a new secure server socket, binds it to a given address
* and port, and listens on it. Incoming client connections are
@@ -12,19 +12,19 @@ abstract class TlsServerSocket implements ServerSocket {
* not a host name. The certificate name is the distinguished name (DN) of
* the certificate, such as "CN=localhost" or "CN=myserver.mydomain.com".
* The certificate is looked up in the NSS certificate database set by
- * TlsSocket.setCertificateDatabase.
+ * SecureSocket.setCertificateDatabase.
*/
- factory TlsServerSocket(String bindAddress,
+ factory SecureServerSocket(String bindAddress,
int port,
int backlog,
String certificate_name) =>
- new _TlsServerSocket(bindAddress, port, backlog, certificate_name);
+ new _SecureServerSocket(bindAddress, port, backlog, certificate_name);
}
-class _TlsServerSocket implements TlsServerSocket {
+class _SecureServerSocket implements SecureServerSocket {
- _TlsServerSocket(String bindAddress,
+ _SecureServerSocket(String bindAddress,
int port,
int backlog,
String certificate_name) {
@@ -57,14 +57,14 @@ class _TlsServerSocket implements TlsServerSocket {
if (_onConnectionCallback == null) {
connection.close();
throw new SocketIOException(
- "TlsServerSocket with no onConnection callback connected to");
+ "SecureServerSocket with no onConnection callback connected to");
}
if (_certificate_name == null) {
connection.close();
throw new SocketIOException(
- "TlsServerSocket with server certificate not set connected to");
+ "SecureServerSocket with server certificate not set connected to");
}
- var secure_connection = new _TlsSocket.server(connection.remoteHost,
+ var secure_connection = new _SecureSocket.server(connection.remoteHost,
connection.remotePort,
connection,
_certificate_name);
« no previous file with comments | « sdk/lib/io/iolib_sources.gypi ('k') | sdk/lib/io/secure_socket.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698