OLD | NEW |
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 <set> | 8 #include <set> |
| 9 #include <vector> |
9 | 10 |
10 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
11 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_ptr.h" |
12 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
13 #include "base/scoped_ptr.h" | |
14 #include "content/browser/renderer_host/p2p/socket_host.h" | 15 #include "content/browser/renderer_host/p2p/socket_host.h" |
15 #include "content/common/p2p_sockets.h" | 16 #include "content/common/p2p_sockets.h" |
16 #include "net/base/ip_endpoint.h" | 17 #include "net/base/ip_endpoint.h" |
17 #include "net/udp/udp_server_socket.h" | 18 #include "net/udp/udp_server_socket.h" |
18 | 19 |
19 class P2PSocketHostUdp : public P2PSocketHost { | 20 class P2PSocketHostUdp : public P2PSocketHost { |
20 public: | 21 public: |
21 P2PSocketHostUdp(IPC::Message::Sender* message_sender, | 22 P2PSocketHostUdp(IPC::Message::Sender* message_sender, |
22 int routing_id, int id); | 23 int routing_id, int id); |
23 virtual ~P2PSocketHostUdp(); | 24 virtual ~P2PSocketHostUdp(); |
(...skipping 28 matching lines...) Expand all Loading... |
52 // response. | 53 // response. |
53 AuthorizedPeerSet authorized_peers_; | 54 AuthorizedPeerSet authorized_peers_; |
54 | 55 |
55 net::CompletionCallbackImpl<P2PSocketHostUdp> recv_callback_; | 56 net::CompletionCallbackImpl<P2PSocketHostUdp> recv_callback_; |
56 net::CompletionCallbackImpl<P2PSocketHostUdp> send_callback_; | 57 net::CompletionCallbackImpl<P2PSocketHostUdp> send_callback_; |
57 | 58 |
58 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostUdp); | 59 DISALLOW_COPY_AND_ASSIGN(P2PSocketHostUdp); |
59 }; | 60 }; |
60 | 61 |
61 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_UDP_H_ | 62 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_UDP_H_ |
OLD | NEW |