| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 friend struct BrowserThread::DeleteOnThread<BrowserThread::IO>; | 53 friend struct BrowserThread::DeleteOnThread<BrowserThread::IO>; |
| 54 friend class base::DeleteHelper<P2PSocketDispatcherHost>; | 54 friend class base::DeleteHelper<P2PSocketDispatcherHost>; |
| 55 | 55 |
| 56 typedef std::map<int, P2PSocketHost*> SocketsMap; | 56 typedef std::map<int, P2PSocketHost*> SocketsMap; |
| 57 | 57 |
| 58 class DnsRequest; | 58 class DnsRequest; |
| 59 | 59 |
| 60 P2PSocketHost* LookupSocket(int socket_id); | 60 P2PSocketHost* LookupSocket(int socket_id); |
| 61 | 61 |
| 62 // Handlers for the messages coming from the renderer. | 62 // Handlers for the messages coming from the renderer. |
| 63 void OnStartNetworkNotifications(const IPC::Message& msg); | 63 void OnStartNetworkNotifications(); |
| 64 void OnStopNetworkNotifications(const IPC::Message& msg); | 64 void OnStopNetworkNotifications(); |
| 65 | |
| 66 void OnGetHostAddress(const std::string& host_name, | 65 void OnGetHostAddress(const std::string& host_name, |
| 67 int32 request_id); | 66 int32 request_id); |
| 68 | 67 |
| 69 void OnCreateSocket(P2PSocketType type, | 68 void OnCreateSocket(P2PSocketType type, |
| 70 int socket_id, | 69 int socket_id, |
| 71 const net::IPEndPoint& local_address, | 70 const net::IPEndPoint& local_address, |
| 72 const P2PHostAndIPEndPoint& remote_address); | 71 const P2PHostAndIPEndPoint& remote_address); |
| 73 void OnAcceptIncomingTcpConnection(int listen_socket_id, | 72 void OnAcceptIncomingTcpConnection(int listen_socket_id, |
| 74 const net::IPEndPoint& remote_address, | 73 const net::IPEndPoint& remote_address, |
| 75 int connected_socket_id); | 74 int connected_socket_id); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 96 | 95 |
| 97 std::set<DnsRequest*> dns_requests_; | 96 std::set<DnsRequest*> dns_requests_; |
| 98 P2PMessageThrottler throttler_; | 97 P2PMessageThrottler throttler_; |
| 99 | 98 |
| 100 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost); | 99 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost); |
| 101 }; | 100 }; |
| 102 | 101 |
| 103 } // namespace content | 102 } // namespace content |
| 104 | 103 |
| 105 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ | 104 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ |
| OLD | NEW |