Chromium Code Reviews| 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 | 9 |
| 10 #include "content/common/p2p_sockets.h" | 10 #include "content/common/p2p_sockets.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 60 | 60 |
| 61 void OnCreateSocket(P2PSocketType type, | 61 void OnCreateSocket(P2PSocketType type, |
| 62 int socket_id, | 62 int socket_id, |
| 63 const net::IPEndPoint& local_address, | 63 const net::IPEndPoint& local_address, |
| 64 const net::IPEndPoint& remote_address); | 64 const net::IPEndPoint& remote_address); |
| 65 void OnAcceptIncomingTcpConnection(int listen_socket_id, | 65 void OnAcceptIncomingTcpConnection(int listen_socket_id, |
| 66 const net::IPEndPoint& remote_address, | 66 const net::IPEndPoint& remote_address, |
| 67 int connected_socket_id); | 67 int connected_socket_id); |
| 68 void OnSend(int socket_id, | 68 void OnSend(int socket_id, |
| 69 const net::IPEndPoint& socket_address, | 69 const net::IPEndPoint& socket_address, |
| 70 const std::vector<char>& data); | 70 const std::vector<char>& data, |
| 71 net::DiffServCodePoint dscp); | |
|
Sergey Ulanov
2013/08/17 05:50:04
nit: |dscp| is not readable. maybe call it |servic
hubbe
2013/08/21 18:51:36
dscp seems to be a pretty common abbreviation of "
| |
| 71 void OnDestroySocket(int socket_id); | 72 void OnDestroySocket(int socket_id); |
| 72 | 73 |
| 73 void DoGetNetworkList(); | 74 void DoGetNetworkList(); |
| 74 void SendNetworkList(const net::NetworkInterfaceList& list); | 75 void SendNetworkList(const net::NetworkInterfaceList& list); |
| 75 | 76 |
| 76 void OnAddressResolved(DnsRequest* request, | 77 void OnAddressResolved(DnsRequest* request, |
| 77 const net::IPAddressNumber& result); | 78 const net::IPAddressNumber& result); |
| 78 | 79 |
| 79 content::ResourceContext* resource_context_; | 80 content::ResourceContext* resource_context_; |
| 80 scoped_refptr<net::URLRequestContextGetter> url_context_; | 81 scoped_refptr<net::URLRequestContextGetter> url_context_; |
| 81 | 82 |
| 82 SocketsMap sockets_; | 83 SocketsMap sockets_; |
| 83 | 84 |
| 84 bool monitoring_networks_; | 85 bool monitoring_networks_; |
| 85 | 86 |
| 86 std::set<DnsRequest*> dns_requests_; | 87 std::set<DnsRequest*> dns_requests_; |
| 87 | 88 |
| 88 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost); | 89 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost); |
| 89 }; | 90 }; |
| 90 | 91 |
| 91 } // namespace content | 92 } // namespace content |
| 92 | 93 |
| 93 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ | 94 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ |
| OLD | NEW |