| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 void OnCreateSocket(P2PSocketType type, | 65 void OnCreateSocket(P2PSocketType type, |
| 66 int socket_id, | 66 int socket_id, |
| 67 const net::IPEndPoint& local_address, | 67 const net::IPEndPoint& local_address, |
| 68 const net::IPEndPoint& remote_address); | 68 const net::IPEndPoint& remote_address); |
| 69 void OnAcceptIncomingTcpConnection(int listen_socket_id, | 69 void OnAcceptIncomingTcpConnection(int listen_socket_id, |
| 70 const net::IPEndPoint& remote_address, | 70 const net::IPEndPoint& remote_address, |
| 71 int connected_socket_id); | 71 int connected_socket_id); |
| 72 void OnSend(int socket_id, | 72 void OnSend(int socket_id, |
| 73 const net::IPEndPoint& socket_address, | 73 const net::IPEndPoint& socket_address, |
| 74 const std::vector<char>& data, | 74 const std::vector<char>& data, |
| 75 net::DiffServCodePoint dscp, |
| 75 uint64 packet_id); | 76 uint64 packet_id); |
| 76 void OnDestroySocket(int socket_id); | 77 void OnDestroySocket(int socket_id); |
| 77 | 78 |
| 78 void DoGetNetworkList(); | 79 void DoGetNetworkList(); |
| 79 void SendNetworkList(const net::NetworkInterfaceList& list); | 80 void SendNetworkList(const net::NetworkInterfaceList& list); |
| 80 | 81 |
| 81 void OnAddressResolved(DnsRequest* request, | 82 void OnAddressResolved(DnsRequest* request, |
| 82 const net::IPAddressNumber& result); | 83 const net::IPAddressNumber& result); |
| 83 | 84 |
| 84 content::ResourceContext* resource_context_; | 85 content::ResourceContext* resource_context_; |
| 85 scoped_refptr<net::URLRequestContextGetter> url_context_; | 86 scoped_refptr<net::URLRequestContextGetter> url_context_; |
| 86 | 87 |
| 87 SocketsMap sockets_; | 88 SocketsMap sockets_; |
| 88 | 89 |
| 89 bool monitoring_networks_; | 90 bool monitoring_networks_; |
| 90 | 91 |
| 91 std::set<DnsRequest*> dns_requests_; | 92 std::set<DnsRequest*> dns_requests_; |
| 92 P2PMessageThrottler throttler_; | 93 P2PMessageThrottler throttler_; |
| 93 | 94 |
| 94 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost); | 95 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost); |
| 95 }; | 96 }; |
| 96 | 97 |
| 97 } // namespace content | 98 } // namespace content |
| 98 | 99 |
| 99 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ | 100 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ |
| OLD | NEW |