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

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

Issue 10662005: Use IPC::Sender and IPC::Listener in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/content_export.h" 15 #include "content/common/content_export.h"
16 #include "content/common/p2p_sockets.h" 16 #include "content/common/p2p_sockets.h"
17 #include "ipc/ipc_sender.h"
17 #include "net/base/completion_callback.h" 18 #include "net/base/completion_callback.h"
18 #include "net/socket/tcp_server_socket.h" 19 #include "net/socket/tcp_server_socket.h"
19 20
20 namespace net { 21 namespace net {
21 class StreamSocket; 22 class StreamSocket;
22 } // namespace net 23 } // namespace net
23 24
24 namespace content { 25 namespace content {
25 26
26 class CONTENT_EXPORT P2PSocketHostTcpServer : public P2PSocketHost { 27 class CONTENT_EXPORT P2PSocketHostTcpServer : public P2PSocketHost {
27 public: 28 public:
28 P2PSocketHostTcpServer(IPC::Message::Sender* message_sender, 29 P2PSocketHostTcpServer(IPC::Sender* message_sender, int routing_id, int id);
29 int routing_id, int id);
30 virtual ~P2PSocketHostTcpServer(); 30 virtual ~P2PSocketHostTcpServer();
31 31
32 // P2PSocketHost overrides. 32 // P2PSocketHost overrides.
33 virtual bool Init(const net::IPEndPoint& local_address, 33 virtual bool Init(const net::IPEndPoint& local_address,
34 const net::IPEndPoint& remote_address) OVERRIDE; 34 const net::IPEndPoint& remote_address) OVERRIDE;
35 virtual void Send(const net::IPEndPoint& to, 35 virtual void Send(const net::IPEndPoint& to,
36 const std::vector<char>& data) OVERRIDE; 36 const std::vector<char>& data) OVERRIDE;
37 virtual P2PSocketHost* AcceptIncomingTcpConnection( 37 virtual P2PSocketHost* AcceptIncomingTcpConnection(
38 const net::IPEndPoint& remote_address, int id) OVERRIDE; 38 const net::IPEndPoint& remote_address, int id) OVERRIDE;
39 39
(...skipping 17 matching lines...) Expand all
57 AcceptedSocketsMap accepted_sockets_; 57 AcceptedSocketsMap accepted_sockets_;
58 58
59 net::CompletionCallback accept_callback_; 59 net::CompletionCallback accept_callback_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostTcpServer); 61 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostTcpServer);
62 }; 62 };
63 63
64 } // namespace content 64 } // namespace content
65 65
66 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_TCP_SERVER_H_ 66 #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