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

Side by Side Diff: content/browser/renderer_host/p2p/socket_host_udp.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_UDP_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_UDP_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_UDP_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_UDP_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/message_loop.h" 15 #include "base/message_loop.h"
16 #include "content/browser/renderer_host/p2p/socket_host.h" 16 #include "content/browser/renderer_host/p2p/socket_host.h"
17 #include "content/common/content_export.h" 17 #include "content/common/content_export.h"
18 #include "content/common/p2p_sockets.h" 18 #include "content/common/p2p_sockets.h"
19 #include "ipc/ipc_sender.h"
19 #include "net/base/ip_endpoint.h" 20 #include "net/base/ip_endpoint.h"
20 #include "net/udp/udp_server_socket.h" 21 #include "net/udp/udp_server_socket.h"
21 22
22 namespace content { 23 namespace content {
23 24
24 class CONTENT_EXPORT P2PSocketHostUdp : public P2PSocketHost { 25 class CONTENT_EXPORT P2PSocketHostUdp : public P2PSocketHost {
25 public: 26 public:
26 P2PSocketHostUdp(IPC::Message::Sender* message_sender, 27 P2PSocketHostUdp(IPC::Sender* message_sender, int routing_id, int id);
27 int routing_id, int id);
28 virtual ~P2PSocketHostUdp(); 28 virtual ~P2PSocketHostUdp();
29 29
30 // P2PSocketHost overrides. 30 // P2PSocketHost overrides.
31 virtual bool Init(const net::IPEndPoint& local_address, 31 virtual bool Init(const net::IPEndPoint& local_address,
32 const net::IPEndPoint& remote_address) OVERRIDE; 32 const net::IPEndPoint& remote_address) OVERRIDE;
33 virtual void Send(const net::IPEndPoint& to, 33 virtual void Send(const net::IPEndPoint& to,
34 const std::vector<char>& data) OVERRIDE; 34 const std::vector<char>& data) OVERRIDE;
35 virtual P2PSocketHost* AcceptIncomingTcpConnection( 35 virtual P2PSocketHost* AcceptIncomingTcpConnection(
36 const net::IPEndPoint& remote_address, int id) OVERRIDE; 36 const net::IPEndPoint& remote_address, int id) OVERRIDE;
37 37
(...skipping 30 matching lines...) Expand all
68 // Set of peer for which we have received STUN binding request or 68 // Set of peer for which we have received STUN binding request or
69 // response or relay allocation request or response. 69 // response or relay allocation request or response.
70 ConnectedPeerSet connected_peers_; 70 ConnectedPeerSet connected_peers_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostUdp); 72 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostUdp);
73 }; 73 };
74 74
75 } // namespace content 75 } // namespace content
76 76
77 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_UDP_H_ 77 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_UDP_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/p2p/socket_host_test_utils.h ('k') | content/browser/renderer_host/p2p/socket_host_udp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698