Chromium Code Reviews

Side by Side Diff: webrtc/p2p/client/basicportallocator.h

Issue 2989303002: Make Port (and subclasses) fully "Network"-based, instead of IP-based. (Closed)
Patch Set: Fixing a comment. Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
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 347 matching lines...)
358 const char* data, 358 const char* data,
359 size_t size, 359 size_t size,
360 const rtc::SocketAddress& remote_addr, 360 const rtc::SocketAddress& remote_addr,
361 const rtc::PacketTime& packet_time); 361 const rtc::PacketTime& packet_time);
362 362
363 void OnPortDestroyed(PortInterface* port); 363 void OnPortDestroyed(PortInterface* port);
364 364
365 BasicPortAllocatorSession* session_; 365 BasicPortAllocatorSession* session_;
366 bool network_failed_ = false; 366 bool network_failed_ = false;
367 rtc::Network* network_; 367 rtc::Network* network_;
368 rtc::IPAddress ip_; 368 // Compared with the new best IP in DisableEquivalentPhases.
369 rtc::IPAddress previous_best_ip_;
369 PortConfiguration* config_; 370 PortConfiguration* config_;
370 State state_; 371 State state_;
371 uint32_t flags_; 372 uint32_t flags_;
372 ProtocolList protocols_; 373 ProtocolList protocols_;
373 std::unique_ptr<rtc::AsyncPacketSocket> udp_socket_; 374 std::unique_ptr<rtc::AsyncPacketSocket> udp_socket_;
374 // There will be only one udp port per AllocationSequence. 375 // There will be only one udp port per AllocationSequence.
375 UDPPort* udp_port_; 376 UDPPort* udp_port_;
376 std::vector<TurnPort*> turn_ports_; 377 std::vector<TurnPort*> turn_ports_;
377 int phase_; 378 int phase_;
378 }; 379 };
379 380
380 } // namespace cricket 381 } // namespace cricket
381 382
382 #endif // WEBRTC_P2P_CLIENT_BASICPORTALLOCATOR_H_ 383 #endif // WEBRTC_P2P_CLIENT_BASICPORTALLOCATOR_H_
OLDNEW

Powered by Google App Engine