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

Side by Side Diff: content/browser/renderer_host/p2p/socket_host_tcp_server.h

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 #ifndef CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_SERVER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_SERVER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_SERVER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_SERVER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "content/browser/renderer_host/p2p/socket_host.h" 14 #include "content/browser/renderer_host/p2p/socket_host.h"
15 #include "content/common/p2p_sockets.h" 15 #include "content/common/p2p_sockets.h"
16 #include "net/socket/tcp_server_socket.h" 16 #include "net/socket/tcp_server_socket.h"
17 17
18 namespace net { 18 namespace net {
19 class StreamSocket; 19 class StreamSocket;
20 } // namespace net 20 } // namespace net
21 21
22 namespace content {
23
22 class P2PSocketHostTcpServer : public P2PSocketHost { 24 class P2PSocketHostTcpServer : public P2PSocketHost {
23 public: 25 public:
24 P2PSocketHostTcpServer(IPC::Message::Sender* message_sender, 26 P2PSocketHostTcpServer(IPC::Message::Sender* message_sender,
25 int routing_id, int id); 27 int routing_id, int id);
26 virtual ~P2PSocketHostTcpServer(); 28 virtual ~P2PSocketHostTcpServer();
27 29
28 // P2PSocketHost overrides. 30 // P2PSocketHost overrides.
29 virtual bool Init(const net::IPEndPoint& local_address, 31 virtual bool Init(const net::IPEndPoint& local_address,
30 const net::IPEndPoint& remote_address) OVERRIDE; 32 const net::IPEndPoint& remote_address) OVERRIDE;
31 virtual void Send(const net::IPEndPoint& to, 33 virtual void Send(const net::IPEndPoint& to,
(...skipping 18 matching lines...) Expand all
50 net::IPEndPoint local_address_; 52 net::IPEndPoint local_address_;
51 53
52 scoped_ptr<net::StreamSocket> accept_socket_; 54 scoped_ptr<net::StreamSocket> accept_socket_;
53 AcceptedSocketsMap accepted_sockets_; 55 AcceptedSocketsMap accepted_sockets_;
54 56
55 net::CompletionCallbackImpl<P2PSocketHostTcpServer> accept_callback_; 57 net::CompletionCallbackImpl<P2PSocketHostTcpServer> accept_callback_;
56 58
57 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostTcpServer); 59 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostTcpServer);
58 }; 60 };
59 61
62 } // namespace content
63
60 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_SERVER_H_ 64 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_SERVER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/p2p/socket_host_tcp.cc ('k') | content/browser/renderer_host/p2p/socket_host_tcp_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698