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

Side by Side Diff: content/browser/renderer_host/p2p/socket_host.cc

Issue 22452002: Adding TLS support to the TCP Client sockets. (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/p2p/socket_host.h" 5 #include "content/browser/renderer_host/p2p/socket_host.h"
6 6
7 #include "base/sys_byteorder.h" 7 #include "base/sys_byteorder.h"
8 #include "content/browser/renderer_host/p2p/socket_host_tcp.h" 8 #include "content/browser/renderer_host/p2p/socket_host_tcp.h"
9 #include "content/browser/renderer_host/p2p/socket_host_tcp_server.h" 9 #include "content/browser/renderer_host/p2p/socket_host_tcp_server.h"
10 #include "content/browser/renderer_host/p2p/socket_host_udp.h" 10 #include "content/browser/renderer_host/p2p/socket_host_udp.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 case P2P_SOCKET_TCP_SERVER: 81 case P2P_SOCKET_TCP_SERVER:
82 return new P2PSocketHostTcpServer( 82 return new P2PSocketHostTcpServer(
83 message_sender, id, P2P_SOCKET_TCP_CLIENT); 83 message_sender, id, P2P_SOCKET_TCP_CLIENT);
84 84
85 case P2P_SOCKET_STUN_TCP_SERVER: 85 case P2P_SOCKET_STUN_TCP_SERVER:
86 return new P2PSocketHostTcpServer( 86 return new P2PSocketHostTcpServer(
87 message_sender, id, P2P_SOCKET_STUN_TCP_CLIENT); 87 message_sender, id, P2P_SOCKET_STUN_TCP_CLIENT);
88 88
89 case P2P_SOCKET_TCP_CLIENT: 89 case P2P_SOCKET_TCP_CLIENT:
90 case P2P_SOCKET_SSLTCP_CLIENT: 90 case P2P_SOCKET_SSLTCP_CLIENT:
91 case P2P_SOCKET_TLS_CLIENT:
91 return new P2PSocketHostTcp(message_sender, id, type, url_context); 92 return new P2PSocketHostTcp(message_sender, id, type, url_context);
92 93
93 case P2P_SOCKET_STUN_TCP_CLIENT: 94 case P2P_SOCKET_STUN_TCP_CLIENT:
94 case P2P_SOCKET_STUN_SSLTCP_CLIENT: 95 case P2P_SOCKET_STUN_SSLTCP_CLIENT:
96 case P2P_SOCKET_STUN_TLS_CLIENT:
95 return new P2PSocketHostStunTcp(message_sender, id, type, url_context); 97 return new P2PSocketHostStunTcp(message_sender, id, type, url_context);
96 } 98 }
97 99
98 NOTREACHED(); 100 NOTREACHED();
99 return NULL; 101 return NULL;
100 } 102 }
101 103
102 } // namespace content 104 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/p2p/socket_host.h ('k') | content/browser/renderer_host/p2p/socket_host_tcp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698