Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: content/browser/renderer_host/p2p/socket_dispatcher_host.h

Issue 2140693002: Support port range for IPC P2P UDP sockets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address tommi's comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698