| 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 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 struct RelayServerConfig { | 34 struct RelayServerConfig { |
| 35 RelayServerConfig(); | 35 RelayServerConfig(); |
| 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 }; | 44 }; |
| 44 | 45 |
| 45 // STUN server address and port. | 46 // STUN server address and port. |
| 46 std::string stun_server; | 47 std::string stun_server; |
| 47 int stun_server_port; | 48 int stun_server_port; |
| 48 | 49 |
| 49 std::vector<RelayServerConfig> relays; | 50 std::vector<RelayServerConfig> relays; |
| 50 | 51 |
| 51 bool legacy_relay; | 52 bool legacy_relay; |
| 52 // Disable TCP-based transport when set to true. | 53 // Disable TCP-based transport when set to true. |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 int relay_tcp_port_; | 142 int relay_tcp_port_; |
| 142 int relay_ssltcp_port_; | 143 int relay_ssltcp_port_; |
| 143 int pending_relay_requests_; | 144 int pending_relay_requests_; |
| 144 | 145 |
| 145 DISALLOW_COPY_AND_ASSIGN(P2PPortAllocatorSession); | 146 DISALLOW_COPY_AND_ASSIGN(P2PPortAllocatorSession); |
| 146 }; | 147 }; |
| 147 | 148 |
| 148 } // namespace content | 149 } // namespace content |
| 149 | 150 |
| 150 #endif // CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ | 151 #endif // CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ |
| OLD | NEW |