OLD | NEW |
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 79 |
80 case P2P_SOCKET_TCP_SERVER: | 80 case P2P_SOCKET_TCP_SERVER: |
81 return new P2PSocketHostTcpServer( | 81 return new P2PSocketHostTcpServer( |
82 message_sender, id, P2P_SOCKET_TCP_CLIENT); | 82 message_sender, id, P2P_SOCKET_TCP_CLIENT); |
83 | 83 |
84 case P2P_SOCKET_STUN_TCP_SERVER: | 84 case P2P_SOCKET_STUN_TCP_SERVER: |
85 return new P2PSocketHostTcpServer( | 85 return new P2PSocketHostTcpServer( |
86 message_sender, id, P2P_SOCKET_STUN_TCP_CLIENT); | 86 message_sender, id, P2P_SOCKET_STUN_TCP_CLIENT); |
87 | 87 |
88 case P2P_SOCKET_TCP_CLIENT: | 88 case P2P_SOCKET_TCP_CLIENT: |
89 return new P2PSocketHostTcp(message_sender, id); | 89 return new P2PSocketHostTcp(message_sender, id, type); |
90 | 90 |
91 case P2P_SOCKET_STUN_TCP_CLIENT: | 91 case P2P_SOCKET_STUN_TCP_CLIENT: |
92 return new P2PSocketHostStunTcp(message_sender, id); | 92 return new P2PSocketHostStunTcp(message_sender, id, type); |
| 93 |
| 94 case P2P_SOCKET_SSLTCP_CLIENT: |
| 95 return new P2PSocketHostTcp(message_sender, id, type); |
| 96 |
| 97 case P2P_SOCKET_STUN_SSLTCP_CLIENT: |
| 98 return new P2PSocketHostStunTcp(message_sender, id, type); |
93 } | 99 } |
94 | 100 |
95 NOTREACHED(); | 101 NOTREACHED(); |
96 return NULL; | 102 return NULL; |
97 } | 103 } |
98 | 104 |
99 } // namespace content | 105 } // namespace content |
OLD | NEW |