| Index: webrtc/p2p/base/p2ptransportchannel.h
|
| diff --git a/webrtc/p2p/base/p2ptransportchannel.h b/webrtc/p2p/base/p2ptransportchannel.h
|
| index 92969c8b7e0436b798af444bb229ce678809a30e..51426239db1b46f9260e6a52a35cff682e3c5648 100644
|
| --- a/webrtc/p2p/base/p2ptransportchannel.h
|
| +++ b/webrtc/p2p/base/p2ptransportchannel.h
|
| @@ -162,6 +162,9 @@ class P2PTransportChannel : public TransportChannelImpl,
|
| return allocator_sessions_.back();
|
| }
|
|
|
| + // A transport channel is weak if the current best connection is either
|
| + // not receiving or not writable, or if there is no best connection at all.
|
| + bool Weak() const;
|
| void UpdateConnectionStates();
|
| void RequestSort();
|
| void SortConnections();
|
| @@ -211,9 +214,7 @@ class P2PTransportChannel : public TransportChannelImpl,
|
|
|
| void OnMessage(rtc::Message* pmsg) override;
|
| void OnSort();
|
| - void OnPing();
|
| -
|
| - void OnCheckReceiving();
|
| + void OnCheckAndPing();
|
|
|
| void PruneConnections();
|
| Connection* best_nominated_connection() const;
|
| @@ -248,6 +249,7 @@ class P2PTransportChannel : public TransportChannelImpl,
|
|
|
| int check_receiving_delay_;
|
| int receiving_timeout_;
|
| + uint32 last_ping_sent_ms_ = 0;
|
|
|
| RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel);
|
| };
|
|
|