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

Side by Side Diff: webrtc/p2p/base/p2ptransportchannel.cc

Issue 1940493002: Add Stats to Stun ping. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 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
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 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 (connection->write_state() == Connection::STATE_WRITABLE); 1011 (connection->write_state() == Connection::STATE_WRITABLE);
1012 info.timeout = 1012 info.timeout =
1013 (connection->write_state() == Connection::STATE_WRITE_TIMEOUT); 1013 (connection->write_state() == Connection::STATE_WRITE_TIMEOUT);
1014 info.new_connection = !connection->reported(); 1014 info.new_connection = !connection->reported();
1015 connection->set_reported(true); 1015 connection->set_reported(true);
1016 info.rtt = connection->rtt(); 1016 info.rtt = connection->rtt();
1017 info.sent_total_bytes = connection->sent_total_bytes(); 1017 info.sent_total_bytes = connection->sent_total_bytes();
1018 info.sent_bytes_second = connection->sent_bytes_second(); 1018 info.sent_bytes_second = connection->sent_bytes_second();
1019 info.sent_discarded_packets = connection->sent_discarded_packets(); 1019 info.sent_discarded_packets = connection->sent_discarded_packets();
1020 info.sent_total_packets = connection->sent_total_packets(); 1020 info.sent_total_packets = connection->sent_total_packets();
1021 info.sent_ping_requests = connection->sent_ping_requests();
1021 info.recv_total_bytes = connection->recv_total_bytes(); 1022 info.recv_total_bytes = connection->recv_total_bytes();
1022 info.recv_bytes_second = connection->recv_bytes_second(); 1023 info.recv_bytes_second = connection->recv_bytes_second();
1024 info.recv_ping_responses = connection->recv_ping_responses();
1023 info.local_candidate = connection->local_candidate(); 1025 info.local_candidate = connection->local_candidate();
1024 info.remote_candidate = connection->remote_candidate(); 1026 info.remote_candidate = connection->remote_candidate();
1025 info.key = connection; 1027 info.key = connection;
1026 infos->push_back(info); 1028 infos->push_back(info);
1027 } 1029 }
1028 1030
1029 return true; 1031 return true;
1030 } 1032 }
1031 1033
1032 rtc::DiffServCodePoint P2PTransportChannel::DefaultDscpValue() const { 1034 rtc::DiffServCodePoint P2PTransportChannel::DefaultDscpValue() const {
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
1638 1640
1639 // During the initial state when nothing has been pinged yet, return the first 1641 // During the initial state when nothing has been pinged yet, return the first
1640 // one in the ordered |connections_|. 1642 // one in the ordered |connections_|.
1641 return *(std::find_if(connections_.begin(), connections_.end(), 1643 return *(std::find_if(connections_.begin(), connections_.end(),
1642 [conn1, conn2](Connection* conn) { 1644 [conn1, conn2](Connection* conn) {
1643 return conn == conn1 || conn == conn2; 1645 return conn == conn1 || conn == conn2;
1644 })); 1646 }));
1645 } 1647 }
1646 1648
1647 } // namespace cricket 1649 } // namespace cricket
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698