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 20 matching lines...) Expand all Loading... |
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 // Enable non-proxied UDP-based transport when set to true. When set to | 38 // Enable non-proxied UDP-based transport when set to true. When set to |
39 // false, it effectively disables all UDP traffic until UDP-supporting proxy | 39 // false, it effectively disables all UDP traffic until UDP-supporting proxy |
40 // RETURN is available in the future. | 40 // RETURN is available in the future. |
41 bool enable_nonproxied_udp_transport = true; | 41 bool enable_nonproxied_udp = true; |
42 | 42 |
43 // Disable binding to individual NICs when set to false. | 43 // Disable binding to individual NICs when set to false. |
44 bool enable_multiple_routes = true; | 44 bool enable_multiple_routes = true; |
45 }; | 45 }; |
46 | 46 |
47 P2PPortAllocator(P2PSocketDispatcher* socket_dispatcher, | 47 P2PPortAllocator(P2PSocketDispatcher* socket_dispatcher, |
48 rtc::NetworkManager* network_manager, | 48 rtc::NetworkManager* network_manager, |
49 rtc::PacketSocketFactory* socket_factory, | 49 rtc::PacketSocketFactory* socket_factory, |
50 const Config& config, | 50 const Config& config, |
51 const GURL& origin); | 51 const GURL& origin); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 private: | 84 private: |
85 P2PPortAllocator* allocator_; | 85 P2PPortAllocator* allocator_; |
86 | 86 |
87 DISALLOW_COPY_AND_ASSIGN(P2PPortAllocatorSession); | 87 DISALLOW_COPY_AND_ASSIGN(P2PPortAllocatorSession); |
88 }; | 88 }; |
89 | 89 |
90 } // namespace content | 90 } // namespace content |
91 | 91 |
92 #endif // CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ | 92 #endif // CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ |
OLD | NEW |