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

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

Issue 1696933003: When doing continual gathering, remove local candidates when a network is dropped. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Fix a type conversion error on Windows Created 4 years, 10 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 void Construct(); 351 void Construct();
352 // Called when one of our connections deletes itself. 352 // Called when one of our connections deletes itself.
353 void OnConnectionDestroyed(Connection* conn); 353 void OnConnectionDestroyed(Connection* conn);
354 354
355 // Whether this port is dead, and hence, should be destroyed on the controlled 355 // Whether this port is dead, and hence, should be destroyed on the controlled
356 // side. 356 // side.
357 bool dead() const { 357 bool dead() const {
358 return ice_role_ == ICEROLE_CONTROLLED && connections_.empty(); 358 return ice_role_ == ICEROLE_CONTROLLED && connections_.empty();
359 } 359 }
360 360
361 void OnNetworkInactive(const rtc::Network* network);
362
361 rtc::Thread* thread_; 363 rtc::Thread* thread_;
362 rtc::PacketSocketFactory* factory_; 364 rtc::PacketSocketFactory* factory_;
363 std::string type_; 365 std::string type_;
364 bool send_retransmit_count_attribute_; 366 bool send_retransmit_count_attribute_;
365 rtc::Network* network_; 367 rtc::Network* network_;
366 rtc::IPAddress ip_; 368 rtc::IPAddress ip_;
367 uint16_t min_port_; 369 uint16_t min_port_;
368 uint16_t max_port_; 370 uint16_t max_port_;
369 std::string content_name_; 371 std::string content_name_;
370 int component_; 372 int component_;
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 const rtc::PacketOptions& options) override; 663 const rtc::PacketOptions& options) override;
662 int GetError() override { return error_; } 664 int GetError() override { return error_; }
663 665
664 private: 666 private:
665 int error_ = 0; 667 int error_ = 0;
666 }; 668 };
667 669
668 } // namespace cricket 670 } // namespace cricket
669 671
670 #endif // WEBRTC_P2P_BASE_PORT_H_ 672 #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