| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 void DisableEquivalentPhases(rtc::Network* network, | 155 void DisableEquivalentPhases(rtc::Network* network, |
| 156 PortConfiguration* config, | 156 PortConfiguration* config, |
| 157 uint32_t* flags); | 157 uint32_t* flags); |
| 158 void AddAllocatedPort(Port* port, AllocationSequence* seq, | 158 void AddAllocatedPort(Port* port, AllocationSequence* seq, |
| 159 bool prepare_address); | 159 bool prepare_address); |
| 160 void OnCandidateReady(Port* port, const Candidate& c); | 160 void OnCandidateReady(Port* port, const Candidate& c); |
| 161 void OnPortComplete(Port* port); | 161 void OnPortComplete(Port* port); |
| 162 void OnPortError(Port* port); | 162 void OnPortError(Port* port); |
| 163 void OnProtocolEnabled(AllocationSequence* seq, ProtocolType proto); | 163 void OnProtocolEnabled(AllocationSequence* seq, ProtocolType proto); |
| 164 void OnPortDestroyed(PortInterface* port); | 164 void OnPortDestroyed(PortInterface* port); |
| 165 void OnShake(); | |
| 166 void MaybeSignalCandidatesAllocationDone(); | 165 void MaybeSignalCandidatesAllocationDone(); |
| 167 void OnPortAllocationComplete(AllocationSequence* seq); | 166 void OnPortAllocationComplete(AllocationSequence* seq); |
| 168 PortData* FindPort(Port* port); | 167 PortData* FindPort(Port* port); |
| 169 void GetNetworks(std::vector<rtc::Network*>* networks); | 168 void GetNetworks(std::vector<rtc::Network*>* networks); |
| 170 | 169 |
| 171 bool CheckCandidateFilter(const Candidate& c) const; | 170 bool CheckCandidateFilter(const Candidate& c) const; |
| 172 | 171 |
| 173 BasicPortAllocator* allocator_; | 172 BasicPortAllocator* allocator_; |
| 174 rtc::Thread* network_thread_; | 173 rtc::Thread* network_thread_; |
| 175 std::unique_ptr<rtc::PacketSocketFactory> owned_socket_factory_; | 174 std::unique_ptr<rtc::PacketSocketFactory> owned_socket_factory_; |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 std::unique_ptr<rtc::AsyncPacketSocket> udp_socket_; | 309 std::unique_ptr<rtc::AsyncPacketSocket> udp_socket_; |
| 311 // There will be only one udp port per AllocationSequence. | 310 // There will be only one udp port per AllocationSequence. |
| 312 UDPPort* udp_port_; | 311 UDPPort* udp_port_; |
| 313 std::vector<TurnPort*> turn_ports_; | 312 std::vector<TurnPort*> turn_ports_; |
| 314 int phase_; | 313 int phase_; |
| 315 }; | 314 }; |
| 316 | 315 |
| 317 } // namespace cricket | 316 } // namespace cricket |
| 318 | 317 |
| 319 #endif // WEBRTC_P2P_CLIENT_BASICPORTALLOCATOR_H_ | 318 #endif // WEBRTC_P2P_CLIENT_BASICPORTALLOCATOR_H_ |
| OLD | NEW |