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 "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "net/base/net_util.h" | 10 #include "net/base/net_util.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 ~RelayServerConfig(); | 36 ~RelayServerConfig(); |
37 | 37 |
38 std::string username; | 38 std::string username; |
39 std::string password; | 39 std::string password; |
40 std::string server_address; | 40 std::string server_address; |
41 int port; | 41 int port; |
42 std::string transport_type; | 42 std::string transport_type; |
43 bool secure; | 43 bool secure; |
44 }; | 44 }; |
45 | 45 |
46 // STUN server address and port. | 46 std::set<rtc::SocketAddress> stun_servers; |
47 std::string stun_server; | |
48 int stun_server_port; | |
49 | 47 |
50 std::vector<RelayServerConfig> relays; | 48 std::vector<RelayServerConfig> relays; |
51 | 49 |
52 bool legacy_relay; | 50 bool legacy_relay; |
53 // Disable TCP-based transport when set to true. | 51 // Disable TCP-based transport when set to true. |
54 bool disable_tcp_transport; | 52 bool disable_tcp_transport; |
55 }; | 53 }; |
56 | 54 |
57 P2PPortAllocator(blink::WebFrame* web_frame, | 55 P2PPortAllocator(blink::WebFrame* web_frame, |
58 P2PSocketDispatcher* socket_dispatcher, | 56 P2PSocketDispatcher* socket_dispatcher, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 int relay_tcp_port_; | 118 int relay_tcp_port_; |
121 int relay_ssltcp_port_; | 119 int relay_ssltcp_port_; |
122 int pending_relay_requests_; | 120 int pending_relay_requests_; |
123 | 121 |
124 DISALLOW_COPY_AND_ASSIGN(P2PPortAllocatorSession); | 122 DISALLOW_COPY_AND_ASSIGN(P2PPortAllocatorSession); |
125 }; | 123 }; |
126 | 124 |
127 } // namespace content | 125 } // namespace content |
128 | 126 |
129 #endif // CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ | 127 #endif // CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ |
OLD | NEW |