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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 P2PSocketHost* LookupSocket(int socket_id); | 73 P2PSocketHost* LookupSocket(int socket_id); |
74 | 74 |
75 // Handlers for the messages coming from the renderer. | 75 // Handlers for the messages coming from the renderer. |
76 void OnStartNetworkNotifications(); | 76 void OnStartNetworkNotifications(); |
77 void OnStopNetworkNotifications(); | 77 void OnStopNetworkNotifications(); |
78 void OnGetHostAddress(const std::string& host_name, int32_t request_id); | 78 void OnGetHostAddress(const std::string& host_name, int32_t request_id); |
79 | 79 |
80 void OnCreateSocket(P2PSocketType type, | 80 void OnCreateSocket(P2PSocketType type, |
81 int socket_id, | 81 int socket_id, |
82 const net::IPEndPoint& local_address, | 82 const net::IPEndPoint& local_address, |
| 83 const P2PPortRange& port_range, |
83 const P2PHostAndIPEndPoint& remote_address); | 84 const P2PHostAndIPEndPoint& remote_address); |
84 void OnAcceptIncomingTcpConnection(int listen_socket_id, | 85 void OnAcceptIncomingTcpConnection(int listen_socket_id, |
85 const net::IPEndPoint& remote_address, | 86 const net::IPEndPoint& remote_address, |
86 int connected_socket_id); | 87 int connected_socket_id); |
87 void OnSend(int socket_id, | 88 void OnSend(int socket_id, |
88 const net::IPEndPoint& socket_address, | 89 const net::IPEndPoint& socket_address, |
89 const std::vector<char>& data, | 90 const std::vector<char>& data, |
90 const rtc::PacketOptions& options, | 91 const rtc::PacketOptions& options, |
91 uint64_t packet_id); | 92 uint64_t packet_id); |
92 void OnSetOption(int socket_id, P2PSocketOption option, int value); | 93 void OnSetOption(int socket_id, P2PSocketOption option, int value); |
(...skipping 30 matching lines...) Expand all Loading... |
123 bool dump_incoming_rtp_packet_; | 124 bool dump_incoming_rtp_packet_; |
124 bool dump_outgoing_rtp_packet_; | 125 bool dump_outgoing_rtp_packet_; |
125 RenderProcessHost::WebRtcRtpPacketCallback packet_callback_; | 126 RenderProcessHost::WebRtcRtpPacketCallback packet_callback_; |
126 | 127 |
127 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost); | 128 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost); |
128 }; | 129 }; |
129 | 130 |
130 } // namespace content | 131 } // namespace content |
131 | 132 |
132 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ | 133 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ |
OLD | NEW |