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

Unified Diff: webrtc/p2p/base/p2ptransportchannel.cc

Issue 2597423003: RTCIceCandidatePairStats.[state/priority] added, ConnectionInfo updated. (Closed)
Patch Set: Rebase with master Created 3 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/p2p/base/jseptransport.cc ('k') | webrtc/p2p/base/p2ptransportchannel_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/p2ptransportchannel.cc
diff --git a/webrtc/p2p/base/p2ptransportchannel.cc b/webrtc/p2p/base/p2ptransportchannel.cc
index 5f858c4858f952174b878891a875648bbd69de43..6071e079b357def1922e31f12b0142150ddb97da 100644
--- a/webrtc/p2p/base/p2ptransportchannel.cc
+++ b/webrtc/p2p/base/p2ptransportchannel.cc
@@ -1012,17 +1012,8 @@ bool P2PTransportChannel::GetStats(ConnectionInfos *infos) {
for (Connection* connection : connections_) {
ConnectionInfo info = connection->stats();
info.best_connection = (selected_connection_ == connection);
- info.receiving = connection->receiving();
- info.writable = (connection->write_state() == Connection::STATE_WRITABLE);
- info.timeout =
- (connection->write_state() == Connection::STATE_WRITE_TIMEOUT);
- info.new_connection = !connection->reported();
+ infos->push_back(std::move(info));
connection->set_reported(true);
- info.rtt = connection->rtt();
- info.local_candidate = connection->local_candidate();
- info.remote_candidate = connection->remote_candidate();
- info.key = connection;
- infos->push_back(info);
}
return true;
@@ -1559,7 +1550,7 @@ bool P2PTransportChannel::IsPingable(const Connection* conn,
}
// A failed connection will not be pinged.
- if (conn->state() == Connection::STATE_FAILED) {
+ if (conn->state() == IceCandidatePairState::FAILED) {
return false;
}
« no previous file with comments | « webrtc/p2p/base/jseptransport.cc ('k') | webrtc/p2p/base/p2ptransportchannel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698