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 |
11 #ifndef WEBRTC_P2P_BASE_PORTALLOCATOR_H_ | 11 #ifndef WEBRTC_P2P_BASE_PORTALLOCATOR_H_ |
12 #define WEBRTC_P2P_BASE_PORTALLOCATOR_H_ | 12 #define WEBRTC_P2P_BASE_PORTALLOCATOR_H_ |
13 | 13 |
14 #include <deque> | 14 #include <deque> |
15 #include <memory> | 15 #include <memory> |
16 #include <string> | 16 #include <string> |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
19 #include "webrtc/p2p/base/port.h" | 19 #include "webrtc/p2p/base/port.h" |
20 #include "webrtc/p2p/base/portinterface.h" | 20 #include "webrtc/p2p/base/portinterface.h" |
21 #include "webrtc/rtc_base/helpers.h" | 21 #include "webrtc/base/helpers.h" |
22 #include "webrtc/rtc_base/proxyinfo.h" | 22 #include "webrtc/base/proxyinfo.h" |
23 #include "webrtc/rtc_base/sigslot.h" | 23 #include "webrtc/base/sigslot.h" |
24 #include "webrtc/rtc_base/thread.h" | 24 #include "webrtc/base/thread.h" |
25 | 25 |
26 namespace webrtc { | 26 namespace webrtc { |
27 class MetricsObserverInterface; | 27 class MetricsObserverInterface; |
28 } | 28 } |
29 | 29 |
30 namespace cricket { | 30 namespace cricket { |
31 | 31 |
32 // PortAllocator is responsible for allocating Port types for a given | 32 // PortAllocator is responsible for allocating Port types for a given |
33 // P2PSocket. It also handles port freeing. | 33 // P2PSocket. It also handles port freeing. |
34 // | 34 // |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 std::deque<std::unique_ptr<PortAllocatorSession>> pooled_sessions_; | 480 std::deque<std::unique_ptr<PortAllocatorSession>> pooled_sessions_; |
481 bool candidate_pool_frozen_ = false; | 481 bool candidate_pool_frozen_ = false; |
482 bool prune_turn_ports_ = false; | 482 bool prune_turn_ports_ = false; |
483 | 483 |
484 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; | 484 webrtc::MetricsObserverInterface* metrics_observer_ = nullptr; |
485 }; | 485 }; |
486 | 486 |
487 } // namespace cricket | 487 } // namespace cricket |
488 | 488 |
489 #endif // WEBRTC_P2P_BASE_PORTALLOCATOR_H_ | 489 #endif // WEBRTC_P2P_BASE_PORTALLOCATOR_H_ |
OLD | NEW |