| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 enum { | 34 enum { |
| 35 // Disable local UDP ports. This doesn't impact how we connect to relay | 35 // Disable local UDP ports. This doesn't impact how we connect to relay |
| 36 // servers. | 36 // servers. |
| 37 PORTALLOCATOR_DISABLE_UDP = 0x01, | 37 PORTALLOCATOR_DISABLE_UDP = 0x01, |
| 38 PORTALLOCATOR_DISABLE_STUN = 0x02, | 38 PORTALLOCATOR_DISABLE_STUN = 0x02, |
| 39 PORTALLOCATOR_DISABLE_RELAY = 0x04, | 39 PORTALLOCATOR_DISABLE_RELAY = 0x04, |
| 40 // Disable local TCP ports. This doesn't impact how we connect to relay | 40 // Disable local TCP ports. This doesn't impact how we connect to relay |
| 41 // servers. | 41 // servers. |
| 42 PORTALLOCATOR_DISABLE_TCP = 0x08, | 42 PORTALLOCATOR_DISABLE_TCP = 0x08, |
| 43 PORTALLOCATOR_ENABLE_SHAKER = 0x10, | |
| 44 PORTALLOCATOR_ENABLE_IPV6 = 0x40, | 43 PORTALLOCATOR_ENABLE_IPV6 = 0x40, |
| 45 // TODO(pthatcher): Remove this once it's no longer used in: | 44 // TODO(pthatcher): Remove this once it's no longer used in: |
| 46 // remoting/client/plugin/pepper_port_allocator.cc | 45 // remoting/client/plugin/pepper_port_allocator.cc |
| 47 // remoting/protocol/chromium_port_allocator.cc | 46 // remoting/protocol/chromium_port_allocator.cc |
| 48 // remoting/test/fake_port_allocator.cc | 47 // remoting/test/fake_port_allocator.cc |
| 49 // It's a no-op and is no longer needed. | 48 // It's a no-op and is no longer needed. |
| 50 PORTALLOCATOR_ENABLE_SHARED_UFRAG = 0x80, | 49 PORTALLOCATOR_ENABLE_SHARED_UFRAG = 0x80, |
| 51 PORTALLOCATOR_ENABLE_SHARED_SOCKET = 0x100, | 50 PORTALLOCATOR_ENABLE_SHARED_SOCKET = 0x100, |
| 52 PORTALLOCATOR_ENABLE_STUN_RETRANSMIT_ATTRIBUTE = 0x200, | 51 PORTALLOCATOR_ENABLE_STUN_RETRANSMIT_ATTRIBUTE = 0x200, |
| 53 // When specified, we'll only allocate the STUN candidate for the public | 52 // When specified, we'll only allocate the STUN candidate for the public |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 int target_pooled_session_count_ = 0; | 332 int target_pooled_session_count_ = 0; |
| 334 // This variable represents the total number of pooled sessions | 333 // This variable represents the total number of pooled sessions |
| 335 // both owned by this class and taken by TakePooledSession. | 334 // both owned by this class and taken by TakePooledSession. |
| 336 int allocated_pooled_session_count_ = 0; | 335 int allocated_pooled_session_count_ = 0; |
| 337 std::deque<std::unique_ptr<PortAllocatorSession>> pooled_sessions_; | 336 std::deque<std::unique_ptr<PortAllocatorSession>> pooled_sessions_; |
| 338 }; | 337 }; |
| 339 | 338 |
| 340 } // namespace cricket | 339 } // namespace cricket |
| 341 | 340 |
| 342 #endif // WEBRTC_P2P_BASE_PORTALLOCATOR_H_ | 341 #endif // WEBRTC_P2P_BASE_PORTALLOCATOR_H_ |
| OLD | NEW |