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

Unified 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, 6 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/p2p/socket_dispatcher_host.h
diff --git a/content/browser/renderer_host/p2p/socket_dispatcher_host.h b/content/browser/renderer_host/p2p/socket_dispatcher_host.h
index 59b69a93fc838d251517ef0bd72523b5a2b79a7a..be6b2d78e6d37e38f763b72727cd7b70566d4858 100644
--- a/content/browser/renderer_host/p2p/socket_dispatcher_host.h
+++ b/content/browser/renderer_host/p2p/socket_dispatcher_host.h
@@ -14,6 +14,7 @@
#include <vector>
#include "base/macros.h"
+#include "base/sequenced_task_runner.h"
#include "content/browser/renderer_host/p2p/socket_host_throttler.h"
#include "content/common/p2p_socket_type.h"
#include "content/public/browser/browser_message_filter.h"
@@ -126,6 +127,10 @@ class P2PSocketDispatcherHost
bool dump_outgoing_rtp_packet_;
RenderProcessHost::WebRtcRtpPacketCallback packet_callback_;
+ // Used to call DoGetNetworkList, which may briefly block since getting the
+ // default local address involves creating a dummy socket.
+ const scoped_refptr<base::SequencedTaskRunner> network_list_task_runner_;
+
DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcherHost);
};
« 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