OLD | NEW |
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 Loading... |
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 true. |
| 41 bool disable_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 Loading... |
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_ |
OLD | NEW |