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

Side by Side Diff: content/renderer/p2p/port_allocator.h

Issue 916873004: Add a Preference to allow WebRTC only bind to "any address" (all 0s) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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_RENDERER_P2P_PORT_ALLOCATOR_H_ 5 #ifndef CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_
6 #define CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ 6 #define CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_
7 7
8 #include "third_party/webrtc/p2p/client/basicportallocator.h" 8 #include "third_party/webrtc/p2p/client/basicportallocator.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 18 matching lines...) Expand all
29 std::string transport_type; 29 std::string transport_type;
30 bool secure; 30 bool secure;
31 }; 31 };
32 32
33 std::set<rtc::SocketAddress> stun_servers; 33 std::set<rtc::SocketAddress> stun_servers;
34 34
35 std::vector<RelayServerConfig> relays; 35 std::vector<RelayServerConfig> relays;
36 36
37 // Disable TCP-based transport when set to true. 37 // Disable TCP-based transport when set to true.
38 bool disable_tcp_transport; 38 bool disable_tcp_transport;
39
40 // Disable binding to individual NICs when set to false.
41 bool enable_multiple_routes;
39 }; 42 };
40 43
41 P2PPortAllocator(P2PSocketDispatcher* socket_dispatcher, 44 P2PPortAllocator(P2PSocketDispatcher* socket_dispatcher,
42 rtc::NetworkManager* network_manager, 45 rtc::NetworkManager* network_manager,
43 rtc::PacketSocketFactory* socket_factory, 46 rtc::PacketSocketFactory* socket_factory,
44 const Config& config); 47 const Config& config);
45 ~P2PPortAllocator() override; 48 ~P2PPortAllocator() override;
46 49
47 cricket::PortAllocatorSession* CreateSessionInternal( 50 cricket::PortAllocatorSession* CreateSessionInternal(
48 const std::string& content_name, 51 const std::string& content_name,
(...skipping 26 matching lines...) Expand all
75 78
76 private: 79 private:
77 P2PPortAllocator* allocator_; 80 P2PPortAllocator* allocator_;
78 81
79 DISALLOW_COPY_AND_ASSIGN(P2PPortAllocatorSession); 82 DISALLOW_COPY_AND_ASSIGN(P2PPortAllocatorSession);
80 }; 83 };
81 84
82 } // namespace content 85 } // namespace content
83 86
84 #endif // CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ 87 #endif // CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_
OLDNEW
« 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