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

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

Issue 450463002: Update webrtc&libjingle 6774:6825. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « content/BUILD.gn ('k') | content/browser/renderer_host/p2p/socket_dispatcher_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "content/browser/renderer_host/p2p/socket_host_throttler.h" 13 #include "content/browser/renderer_host/p2p/socket_host_throttler.h"
14 #include "content/common/p2p_socket_type.h" 14 #include "content/common/p2p_socket_type.h"
15 #include "content/public/browser/browser_message_filter.h" 15 #include "content/public/browser/browser_message_filter.h"
16 #include "content/public/browser/browser_thread.h" 16 #include "content/public/browser/browser_thread.h"
17 #include "content/public/browser/render_process_host.h" 17 #include "content/public/browser/render_process_host.h"
18 #include "net/base/ip_endpoint.h" 18 #include "net/base/ip_endpoint.h"
19 #include "net/base/network_change_notifier.h" 19 #include "net/base/network_change_notifier.h"
20 20
21 namespace net { 21 namespace net {
22 class URLRequestContextGetter; 22 class URLRequestContextGetter;
23 } 23 }
24 24
25 namespace talk_base { 25 namespace rtc {
26 struct PacketOptions; 26 struct PacketOptions;
27 } 27 }
28 28
29 namespace content { 29 namespace content {
30 30
31 class P2PSocketHost; 31 class P2PSocketHost;
32 class ResourceContext; 32 class ResourceContext;
33 33
34 class P2PSocketDispatcherHost 34 class P2PSocketDispatcherHost
35 : public content::BrowserMessageFilter, 35 : public content::BrowserMessageFilter,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void OnCreateSocket(P2PSocketType type, 77 void OnCreateSocket(P2PSocketType type,
78 int socket_id, 78 int socket_id,
79 const net::IPEndPoint& local_address, 79 const net::IPEndPoint& local_address,
80 const P2PHostAndIPEndPoint& remote_address); 80 const P2PHostAndIPEndPoint& remote_address);
81 void OnAcceptIncomingTcpConnection(int listen_socket_id, 81 void OnAcceptIncomingTcpConnection(int listen_socket_id,
82 const net::IPEndPoint& remote_address, 82 const net::IPEndPoint& remote_address,
83 int connected_socket_id); 83 int connected_socket_id);
84 void OnSend(int socket_id, 84 void OnSend(int socket_id,
85 const net::IPEndPoint& socket_address, 85 const net::IPEndPoint& socket_address,
86 const std::vector<char>& data, 86 const std::vector<char>& data,
87 const talk_base::PacketOptions& options, 87 const rtc::PacketOptions& options,
88 uint64 packet_id); 88 uint64 packet_id);
89 void OnSetOption(int socket_id, P2PSocketOption option, int value); 89 void OnSetOption(int socket_id, P2PSocketOption option, int value);
90 void OnDestroySocket(int socket_id); 90 void OnDestroySocket(int socket_id);
91 91
92 void DoGetNetworkList(); 92 void DoGetNetworkList();
93 void SendNetworkList(const net::NetworkInterfaceList& list); 93 void SendNetworkList(const net::NetworkInterfaceList& list);
94 94
95 void OnAddressResolved(DnsRequest* request, 95 void OnAddressResolved(DnsRequest* request,
96 const net::IPAddressList& addresses); 96 const net::IPAddressList& addresses);
97 97
(...skipping 12 matching lines...) Expand all
110 bool dump_incoming_rtp_packet_; 110 bool dump_incoming_rtp_packet_;
111 bool dump_outgoing_rtp_packet_; 111 bool dump_outgoing_rtp_packet_;
112 RenderProcessHost::WebRtcRtpPacketCallback packet_callback_; 112 RenderProcessHost::WebRtcRtpPacketCallback packet_callback_;
113 113
114 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost); 114 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost);
115 }; 115 };
116 116
117 } // namespace content 117 } // namespace content
118 118
119 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ 119 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « content/BUILD.gn ('k') | content/browser/renderer_host/p2p/socket_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698