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

Side by Side Diff: webrtc/p2p/base/port.h

Issue 2025573002: Use continual gathering to restore backup connections (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Merge Created 4 years, 5 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/p2ptransportchannel_unittest.cc ('k') | webrtc/p2p/base/port.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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 void Construct(); 356 void Construct();
357 // Called when one of our connections deletes itself. 357 // Called when one of our connections deletes itself.
358 void OnConnectionDestroyed(Connection* conn); 358 void OnConnectionDestroyed(Connection* conn);
359 359
360 // Whether this port is dead, and hence, should be destroyed on the controlled 360 // Whether this port is dead, and hence, should be destroyed on the controlled
361 // side. 361 // side.
362 bool dead() const { 362 bool dead() const {
363 return ice_role_ == ICEROLE_CONTROLLED && connections_.empty(); 363 return ice_role_ == ICEROLE_CONTROLLED && connections_.empty();
364 } 364 }
365 365
366 void OnNetworkInactive(const rtc::Network* network);
367
368 void OnNetworkTypeChanged(const rtc::Network* network); 366 void OnNetworkTypeChanged(const rtc::Network* network);
369 367
370 rtc::Thread* thread_; 368 rtc::Thread* thread_;
371 rtc::PacketSocketFactory* factory_; 369 rtc::PacketSocketFactory* factory_;
372 std::string type_; 370 std::string type_;
373 bool send_retransmit_count_attribute_; 371 bool send_retransmit_count_attribute_;
374 rtc::Network* network_; 372 rtc::Network* network_;
375 rtc::IPAddress ip_; 373 rtc::IPAddress ip_;
376 uint16_t min_port_; 374 uint16_t min_port_;
377 uint16_t max_port_; 375 uint16_t max_port_;
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 const rtc::PacketOptions& options) override; 680 const rtc::PacketOptions& options) override;
683 int GetError() override { return error_; } 681 int GetError() override { return error_; }
684 682
685 private: 683 private:
686 int error_ = 0; 684 int error_ = 0;
687 }; 685 };
688 686
689 } // namespace cricket 687 } // namespace cricket
690 688
691 #endif // WEBRTC_P2P_BASE_PORT_H_ 689 #endif // WEBRTC_P2P_BASE_PORT_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel_unittest.cc ('k') | webrtc/p2p/base/port.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698