| 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_tcp.h" | 5 #include "content/browser/renderer_host/p2p/socket_host_tcp.h" |
| 6 | 6 |
| 7 #include "base/sys_byteorder.h" | 7 #include "base/sys_byteorder.h" |
| 8 #include "content/common/p2p_messages.h" | 8 #include "content/common/p2p_messages.h" |
| 9 #include "ipc/ipc_sender.h" |
| 9 #include "net/base/io_buffer.h" | 10 #include "net/base/io_buffer.h" |
| 10 #include "net/base/net_errors.h" | 11 #include "net/base/net_errors.h" |
| 11 #include "net/base/net_util.h" | 12 #include "net/base/net_util.h" |
| 12 #include "net/socket/tcp_client_socket.h" | 13 #include "net/socket/tcp_client_socket.h" |
| 13 | 14 |
| 14 namespace { | 15 namespace { |
| 15 const int kReadBufferSize = 4096; | 16 const int kReadBufferSize = 4096; |
| 16 const int kPacketHeaderSize = sizeof(uint16); | 17 const int kPacketHeaderSize = sizeof(uint16); |
| 17 } // namespace | 18 } // namespace |
| 18 | 19 |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 } | 272 } |
| 272 | 273 |
| 273 P2PSocketHost* P2PSocketHostTcp::AcceptIncomingTcpConnection( | 274 P2PSocketHost* P2PSocketHostTcp::AcceptIncomingTcpConnection( |
| 274 const net::IPEndPoint& remote_address, int id) { | 275 const net::IPEndPoint& remote_address, int id) { |
| 275 NOTREACHED(); | 276 NOTREACHED(); |
| 276 OnError(); | 277 OnError(); |
| 277 return NULL; | 278 return NULL; |
| 278 } | 279 } |
| 279 | 280 |
| 280 } // namespace content | 281 } // namespace content |
| OLD | NEW |