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

Unified Diff: remoting/protocol/jingle_session.cc

Issue 7054010: Update SSLServerSocket to provide the net::StreamSocket interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reinstate SSLServerSocket type, and address comments. Created 9 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
Index: remoting/protocol/jingle_session.cc
diff --git a/remoting/protocol/jingle_session.cc b/remoting/protocol/jingle_session.cc
index 90aaf0813a72c38ea4a3b8b2e526ddc47c99f246..91565a0eb630aa99a6735d1f4557db66ef916d9c 100644
--- a/remoting/protocol/jingle_session.cc
+++ b/remoting/protocol/jingle_session.cc
@@ -400,11 +400,11 @@ bool JingleSession::EstablishSSLConnection(
} else {
// Create server SSL socket.
net::SSLConfig ssl_config;
- net::SSLServerSocket* socket = net::CreateSSLServerSocket(
+ net::StreamSocket* socket = net::CreateSSLServerSocket(
wtc 2011/06/02 23:12:58 Change this back to SSLServerSocket.
Wez 2011/06/03 17:47:07 Done.
pseudotcp, server_cert_, key_.get(), ssl_config);
ssl_socket->reset(new SocketWrapper(socket));
- int ret = socket->Accept(&ssl_connect_callback_);
+ int ret = socket->Connect(&ssl_connect_callback_);
willchan no longer on Chromium 2011/06/03 10:23:44 I don't believe we should make this change. Use Ac
Wez 2011/06/03 17:47:07 I chose to re-use Connect() for three reasons: 1.
wtc 2011/06/03 18:03:40 I agree with willchan's comment and wez's comment
if (ret == net::ERR_IO_PENDING) {
return true;
} else if (ret != net::OK) {
« net/socket/ssl_server_socket_unittest.cc ('K') | « net/socket/ssl_server_socket_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698