| 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 #include "url/gurl.h" | 9 #include "url/gurl.h" |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 std::string server_address; | 28 std::string server_address; |
| 29 int port; | 29 int port; |
| 30 std::string transport_type; | 30 std::string transport_type; |
| 31 bool secure; | 31 bool secure; |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 std::set<rtc::SocketAddress> stun_servers; | 34 std::set<rtc::SocketAddress> stun_servers; |
| 35 | 35 |
| 36 std::vector<RelayServerConfig> relays; | 36 std::vector<RelayServerConfig> relays; |
| 37 | 37 |
| 38 // Disable TCP-based transport when set to true. | 38 // Enable non-proxied UDP-based transport when set to true. When set to |
| 39 bool disable_tcp_transport; | 39 // false, it effectively disables all UDP traffic until UDP-supporting proxy |
| 40 // RETURN is available in the future. |
| 41 bool enable_nonproxied_udp_transport = true; |
| 40 | 42 |
| 41 // Disable binding to individual NICs when set to false. | 43 // Disable binding to individual NICs when set to false. |
| 42 bool enable_multiple_routes; | 44 bool enable_multiple_routes = true; |
| 43 }; | 45 }; |
| 44 | 46 |
| 45 P2PPortAllocator(P2PSocketDispatcher* socket_dispatcher, | 47 P2PPortAllocator(P2PSocketDispatcher* socket_dispatcher, |
| 46 rtc::NetworkManager* network_manager, | 48 rtc::NetworkManager* network_manager, |
| 47 rtc::PacketSocketFactory* socket_factory, | 49 rtc::PacketSocketFactory* socket_factory, |
| 48 const Config& config, | 50 const Config& config, |
| 49 const GURL& origin); | 51 const GURL& origin); |
| 50 ~P2PPortAllocator() override; | 52 ~P2PPortAllocator() override; |
| 51 | 53 |
| 52 cricket::PortAllocatorSession* CreateSessionInternal( | 54 cricket::PortAllocatorSession* CreateSessionInternal( |
| (...skipping 28 matching lines...) Expand all Loading... |
| 81 | 83 |
| 82 private: | 84 private: |
| 83 P2PPortAllocator* allocator_; | 85 P2PPortAllocator* allocator_; |
| 84 | 86 |
| 85 DISALLOW_COPY_AND_ASSIGN(P2PPortAllocatorSession); | 87 DISALLOW_COPY_AND_ASSIGN(P2PPortAllocatorSession); |
| 86 }; | 88 }; |
| 87 | 89 |
| 88 } // namespace content | 90 } // namespace content |
| 89 | 91 |
| 90 #endif // CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ | 92 #endif // CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ |
| OLD | NEW |