Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

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: Add back Port constructor that takes IP for backwards compatibility. Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/p2p/base/turnport_unittest.cc ('k') | webrtc/p2p/client/basicportallocator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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...) Expand 10 before | Expand all | Expand 10 after
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
« no previous file with comments | « webrtc/p2p/base/turnport_unittest.cc ('k') | webrtc/p2p/client/basicportallocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698