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 // Disable non-proxied UDP-based transport when set to false. |
Sergey Ulanov
2015/08/28 15:21:26
What is "non-proxied"? do we ever use proxy for UD
Sergey Ulanov
2015/08/28 15:21:26
nit: reword to avoid double negative: Enables non-
| |
39 bool disable_tcp_transport; | 39 bool enable_nonproxied_udp_transport = true; |
40 | 40 |
41 // Disable binding to individual NICs when set to false. | 41 // Disable binding to individual NICs when set to false. |
42 bool enable_multiple_routes; | 42 bool enable_multiple_routes = true; |
43 }; | 43 }; |
44 | 44 |
45 P2PPortAllocator(P2PSocketDispatcher* socket_dispatcher, | 45 P2PPortAllocator(P2PSocketDispatcher* socket_dispatcher, |
46 rtc::NetworkManager* network_manager, | 46 rtc::NetworkManager* network_manager, |
47 rtc::PacketSocketFactory* socket_factory, | 47 rtc::PacketSocketFactory* socket_factory, |
48 const Config& config, | 48 const Config& config, |
49 const GURL& origin); | 49 const GURL& origin); |
50 ~P2PPortAllocator() override; | 50 ~P2PPortAllocator() override; |
51 | 51 |
52 cricket::PortAllocatorSession* CreateSessionInternal( | 52 cricket::PortAllocatorSession* CreateSessionInternal( |
(...skipping 28 matching lines...) Expand all Loading... | |
81 | 81 |
82 private: | 82 private: |
83 P2PPortAllocator* allocator_; | 83 P2PPortAllocator* allocator_; |
84 | 84 |
85 DISALLOW_COPY_AND_ASSIGN(P2PPortAllocatorSession); | 85 DISALLOW_COPY_AND_ASSIGN(P2PPortAllocatorSession); |
86 }; | 86 }; |
87 | 87 |
88 } // namespace content | 88 } // namespace content |
89 | 89 |
90 #endif // CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ | 90 #endif // CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ |
OLD | NEW |