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

Unified Diff: content/browser/renderer_host/p2p/socket_host.cc

Issue 16516003: SSLTCP (pseudo-SSL with fake handshake and unencrypted data) support for p2p socket. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 6 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: content/browser/renderer_host/p2p/socket_host.cc
===================================================================
--- content/browser/renderer_host/p2p/socket_host.cc (revision 205587)
+++ content/browser/renderer_host/p2p/socket_host.cc (working copy)
@@ -79,17 +79,31 @@
case P2P_SOCKET_TCP_SERVER:
return new P2PSocketHostTcpServer(
- message_sender, id, P2P_SOCKET_TCP_CLIENT);
+ message_sender, id, P2P_SOCKET_TCP_CLIENT, false);
case P2P_SOCKET_STUN_TCP_SERVER:
return new P2PSocketHostTcpServer(
- message_sender, id, P2P_SOCKET_STUN_TCP_CLIENT);
+ message_sender, id, P2P_SOCKET_STUN_TCP_CLIENT, false);
case P2P_SOCKET_TCP_CLIENT:
- return new P2PSocketHostTcp(message_sender, id);
+ return new P2PSocketHostTcp(message_sender, id, false);
case P2P_SOCKET_STUN_TCP_CLIENT:
- return new P2PSocketHostStunTcp(message_sender, id);
+ return new P2PSocketHostStunTcp(message_sender, id, false);
+
+ case P2P_SOCKET_SSLTCP_SERVER:
+ return new P2PSocketHostTcpServer(
+ message_sender, id, P2P_SOCKET_SSLTCP_CLIENT, true);
+
+ case P2P_SOCKET_STUN_SSLTCP_SERVER:
+ return new P2PSocketHostTcpServer(
+ message_sender, id, P2P_SOCKET_STUN_SSLTCP_CLIENT, true);
+
+ case P2P_SOCKET_SSLTCP_CLIENT:
+ return new P2PSocketHostTcp(message_sender, id, true);
+
+ case P2P_SOCKET_STUN_SSLTCP_CLIENT:
+ return new P2PSocketHostStunTcp(message_sender, id, true);
}
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698