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

Unified Diff: content/renderer/p2p/port_allocator.h

Issue 1309543004: Create a new preference which disables UDP protocol for WebRTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/p2p/port_allocator.h
diff --git a/content/renderer/p2p/port_allocator.h b/content/renderer/p2p/port_allocator.h
index 3d1ae5fa161a85cc81d6ea66a3e2f8ea9b1631f2..0d4048a38cd585beb96e807122b0bb4b57de260e 100644
--- a/content/renderer/p2p/port_allocator.h
+++ b/content/renderer/p2p/port_allocator.h
@@ -35,11 +35,13 @@ class P2PPortAllocator : public cricket::BasicPortAllocator {
std::vector<RelayServerConfig> relays;
- // Disable TCP-based transport when set to true.
- bool disable_tcp_transport;
+ // Enable non-proxied UDP-based transport when set to true. When set to
+ // false, it effectively disables all UDP traffic until UDP-supporting proxy
+ // RETURN is available in the future.
+ bool enable_nonproxied_udp_transport = true;
// Disable binding to individual NICs when set to false.
- bool enable_multiple_routes;
+ bool enable_multiple_routes = true;
};
P2PPortAllocator(P2PSocketDispatcher* socket_dispatcher,
« no previous file with comments | « content/renderer/media/webrtc/peer_connection_dependency_factory.cc ('k') | content/renderer/p2p/port_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698