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_udp.h" | 5 #include "content/browser/renderer_host/p2p/socket_host_udp.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.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 | 13 |
13 namespace { | 14 namespace { |
14 | 15 |
15 // UDP packets cannot be bigger than 64k. | 16 // UDP packets cannot be bigger than 64k. |
16 const int kReadBufferSize = 65536; | 17 const int kReadBufferSize = 65536; |
17 | 18 |
18 } // namespace | 19 } // namespace |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 } | 198 } |
198 | 199 |
199 P2PSocketHost* P2PSocketHostUdp::AcceptIncomingTcpConnection( | 200 P2PSocketHost* P2PSocketHostUdp::AcceptIncomingTcpConnection( |
200 const net::IPEndPoint& remote_address, int id) { | 201 const net::IPEndPoint& remote_address, int id) { |
201 NOTREACHED(); | 202 NOTREACHED(); |
202 OnError(); | 203 OnError(); |
203 return NULL; | 204 return NULL; |
204 } | 205 } |
205 | 206 |
206 } // namespace content | 207 } // namespace content |
OLD | NEW |