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

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

Issue 2963733002: Use TaskScheduler instead of PostTask in P2PSocketDispatcherHost. (Closed)
Patch Set: Move TaskRunner creation to .cc file. Created 3 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
« no previous file with comments | « no previous file | 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 #include <set> 12 #include <set>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/sequenced_task_runner.h"
17 #include "content/browser/renderer_host/p2p/socket_host_throttler.h" 18 #include "content/browser/renderer_host/p2p/socket_host_throttler.h"
18 #include "content/common/p2p_socket_type.h" 19 #include "content/common/p2p_socket_type.h"
19 #include "content/public/browser/browser_message_filter.h" 20 #include "content/public/browser/browser_message_filter.h"
20 #include "content/public/browser/browser_thread.h" 21 #include "content/public/browser/browser_thread.h"
21 #include "content/public/browser/render_process_host.h" 22 #include "content/public/browser/render_process_host.h"
22 #include "net/base/ip_address.h" 23 #include "net/base/ip_address.h"
23 #include "net/base/ip_endpoint.h" 24 #include "net/base/ip_endpoint.h"
24 #include "net/base/network_change_notifier.h" 25 #include "net/base/network_change_notifier.h"
25 26
26 namespace net { 27 namespace net {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 std::set<std::unique_ptr<DnsRequest>> dns_requests_; 120 std::set<std::unique_ptr<DnsRequest>> dns_requests_;
120 P2PMessageThrottler throttler_; 121 P2PMessageThrottler throttler_;
121 122
122 net::IPAddress default_ipv4_local_address_; 123 net::IPAddress default_ipv4_local_address_;
123 net::IPAddress default_ipv6_local_address_; 124 net::IPAddress default_ipv6_local_address_;
124 125
125 bool dump_incoming_rtp_packet_; 126 bool dump_incoming_rtp_packet_;
126 bool dump_outgoing_rtp_packet_; 127 bool dump_outgoing_rtp_packet_;
127 RenderProcessHost::WebRtcRtpPacketCallback packet_callback_; 128 RenderProcessHost::WebRtcRtpPacketCallback packet_callback_;
128 129
130 // Used to call DoGetNetworkList, which may briefly block since getting the
131 // default local address involves creating a dummy socket.
132 const scoped_refptr<base::SequencedTaskRunner> network_list_task_runner_;
133
129 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost); 134 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost);
130 }; 135 };
131 136
132 } // namespace content 137 } // namespace content
133 138
134 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_ 139 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/p2p/socket_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698