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

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

Issue 7715020: Move P2P code to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/common/p2p_messages.h" 7 #include "content/common/p2p_messages.h"
8 #include "net/base/io_buffer.h" 8 #include "net/base/io_buffer.h"
9 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 #include "net/base/net_util.h" 10 #include "net/base/net_util.h"
11 #include "net/base/sys_byteorder.h" 11 #include "net/base/sys_byteorder.h"
12 #include "net/socket/tcp_client_socket.h" 12 #include "net/socket/tcp_client_socket.h"
13 13
14 namespace content {
15
14 namespace { 16 namespace {
jam 2011/08/24 00:24:27 ditto
Sergey Ulanov 2011/08/24 01:57:48 Done.
15 17
16 const int kReadBufferSize = 4096; 18 const int kReadBufferSize = 4096;
17 const int kPacketHeaderSize = sizeof(uint16); 19 const int kPacketHeaderSize = sizeof(uint16);
18 20
19 } // namespace 21 } // namespace
20 22
21 P2PSocketHostTcp::P2PSocketHostTcp(IPC::Message::Sender* message_sender, 23 P2PSocketHostTcp::P2PSocketHostTcp(IPC::Message::Sender* message_sender,
22 int routing_id, int id) 24 int routing_id, int id)
23 : P2PSocketHost(message_sender, routing_id, id), 25 : P2PSocketHost(message_sender, routing_id, id),
24 connected_(false), 26 connected_(false),
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 DoWrite(); 266 DoWrite();
265 } 267 }
266 } 268 }
267 269
268 P2PSocketHost* P2PSocketHostTcp::AcceptIncomingTcpConnection( 270 P2PSocketHost* P2PSocketHostTcp::AcceptIncomingTcpConnection(
269 const net::IPEndPoint& remote_address, int id) { 271 const net::IPEndPoint& remote_address, int id) {
270 NOTREACHED(); 272 NOTREACHED();
271 OnError(); 273 OnError();
272 return NULL; 274 return NULL;
273 } 275 }
276
277 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698