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

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

Issue 2098703004: Revert of Revert "Revert of Update the BWE when the network route changes. (patchset #5 id:180001 of https://… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: 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/faketransportcontroller.h ('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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 bool writable() const { return write_state_ == STATE_WRITABLE; } 454 bool writable() const { return write_state_ == STATE_WRITABLE; }
455 bool receiving() const { return receiving_; } 455 bool receiving() const { return receiving_; }
456 456
457 // Determines whether the connection has finished connecting. This can only 457 // Determines whether the connection has finished connecting. This can only
458 // be false for TCP connections. 458 // be false for TCP connections.
459 bool connected() const { return connected_; } 459 bool connected() const { return connected_; }
460 bool weak() const { return !(writable() && receiving() && connected()); } 460 bool weak() const { return !(writable() && receiving() && connected()); }
461 bool active() const { 461 bool active() const {
462 return write_state_ != STATE_WRITE_TIMEOUT; 462 return write_state_ != STATE_WRITE_TIMEOUT;
463 } 463 }
464 virtual bool ReadyToSendMedia() const {
465 return write_state_ == STATE_WRITABLE ||
466 write_state_ == STATE_WRITE_UNRELIABLE;
467 }
468
469 // A connection is dead if it can be safely deleted. 464 // A connection is dead if it can be safely deleted.
470 bool dead(int64_t now) const; 465 bool dead(int64_t now) const;
471 466
472 // Estimate of the round-trip time over this connection. 467 // Estimate of the round-trip time over this connection.
473 int rtt() const { return rtt_; } 468 int rtt() const { return rtt_; }
474 469
475 ConnectionInfo stats(); 470 ConnectionInfo stats();
476 471
477 sigslot::signal1<Connection*> SignalStateChange; 472 sigslot::signal1<Connection*> SignalStateChange;
478 473
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 const rtc::PacketOptions& options) override; 680 const rtc::PacketOptions& options) override;
686 int GetError() override { return error_; } 681 int GetError() override { return error_; }
687 682
688 private: 683 private:
689 int error_ = 0; 684 int error_ = 0;
690 }; 685 };
691 686
692 } // namespace cricket 687 } // namespace cricket
693 688
694 #endif // WEBRTC_P2P_BASE_PORT_H_ 689 #endif // WEBRTC_P2P_BASE_PORT_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/faketransportcontroller.h ('k') | webrtc/p2p/base/port.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698